Skip to content

Fix errors in SourceBuffer creation when media parsed codec is unsupported #7304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Jun 5, 2025

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:

Resolves #7302 and #7355

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
@robwalch robwalch added this to the 1.6.6 milestone Jun 5, 2025
@robwalch robwalch force-pushed the bugfix/use-level-codec-over-parsed-based-on-support-check branch from 8a7d247 to 7d79fb9 Compare June 26, 2025 16:52
@robwalch robwalch force-pushed the bugfix/use-level-codec-over-parsed-based-on-support-check branch from 7d79fb9 to 30f7a55 Compare June 27, 2025 16:18
@robwalch robwalch linked an issue Jun 27, 2025 that may be closed by this pull request
@robwalch robwalch merged commit 7896944 into master Jun 27, 2025
16 checks passed
@robwalch robwalch deleted the bugfix/use-level-codec-over-parsed-based-on-support-check branch June 27, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant