Skip to content
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

fix(DASH): Firefox multi-period/multi-codec bug #6691

Merged

Conversation

rogerpales
Copy link
Contributor

@rogerpales rogerpales commented May 28, 2024

I believe a bug was introduced as part of the refactor in this PR #6348 that affects Firefox.

This line here https://github.com/shaka-project/shaka-player/blob/main/lib/util/stream_utils.js#L561 , would clone mediacapabilitiesInfo only if this was a plain Object. This seems to be the case in Chrome, however, it looks like the Firefox implementation of MediaCapabilities.decodingInfo() returns a "non-simple" MediaCapabilitiesInfo object instead - that results in cloneObject retuning null, see screens:

FF:
Screenshot 2024-05-27 at 22 48 51

Chrome:
Screenshot 2024-05-28 at 10 23 00

Switching to use shallow clone instead fixes the problem.

Fixes #6690

@avelad avelad added type: bug Something isn't working correctly priority: P1 Big impact or workaround impractical; resolve before feature release browser: Firefox Issues affecting Firefox or Gecko derivatives component: DASH The issue involves the MPEG DASH manifest format labels May 29, 2024
@avelad avelad added this to the v4.9 milestone May 29, 2024
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 0.00%

@avelad avelad merged commit b3cacad into shaka-project:main May 29, 2024
23 of 24 checks passed
@rogerpales rogerpales deleted the multi-codec-mediacapabilities-firefox branch May 29, 2024 11:12
avelad pushed a commit that referenced this pull request May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: Firefox Issues affecting Firefox or Gecko derivatives component: DASH The issue involves the MPEG DASH manifest format priority: P1 Big impact or workaround impractical; resolve before feature release type: bug Something isn't working correctly
4 participants