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:
parent
2d0bb47014
commit
ce8f61da94
4 changed files with 20 additions and 1 deletions
|
@ -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. ` +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue