hls.js
hls.js copied to clipboard
Play Opus audio
Is your feature request related to a problem? Please describe.
I want to play a video (fMP4 paylist) which has audio track encoded with Opus codec. I need to specify that in CODECS parameter, but there is no way to make it work:
-
opus
is rejected by hls.js becausesampleEntryCodesISO
has keyOpus
but notopus
-
Opus
is rejected by Chrome and Firefox because these browsers violate specs
Lowercase opus
works with some players (bitmovin, castr.io) while Opus
does not.
Describe the solution you'd like
It seems to be less evil to accept lowercase opus
codec as de-facto standard.
Additional context
Sample playlists + segments https://gist.github.com/stolen/c7f9ced139fb38b5759ff3a73d7a6717 PR with proposed solution #4526