hls.js
hls.js copied to clipboard
Fix errors in SourceBuffer creation when media parsed codec is unsupported
This PR will...
Fix errors in SourceBuffer creation when media parsed codec is unsupported
Why is this Pull Request needed?
#7302 shares an asset that somehow worked in v1.5, presumably because of a workaround for bad mp4a parsed codec strings that may have been removed in v1.6.
This change ensures that supported CODECS codec values will be used instead of the mp4 stsd parsed value when the latter fails an isTypeSupported check.
Are there any points in the code the reviewer needs to double check?
Resolves issues:
Resolved #7302
Checklist
- [ ] changes have been done against master branch, and PR does not conflict
- [ ] new unit / functional tests have been added (whenever applicable)
- [ ] API or design changes are documented in API.md