1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-03 17:49:16 +02:00

1.1.5: Add support for HE-AAC profile in mp4a.

This commit is contained in:
Jeff Schiller 2023-10-22 09:40:41 -07:00
parent 2d0bb47014
commit ce8f61da94
4 changed files with 20 additions and 1 deletions

View file

@ -294,10 +294,14 @@ function getVP09CodecString(stream) {
*/
function getMP4ACodecString(stream) {
let frag = 'mp4a.40';
// https://dashif.org/codecs/audio/
switch (stream.profile) {
case 'LC':
frag += '.2';
break;
case 'HE-AAC':
frag += '.5';
break;
// TODO: more!
default:
throw `Cannot handle AAC stream with profile ${stream.profile} yet. ` +