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(Widevine): Add default audio/video robustness for Widevine #7808

Merged
merged 2 commits into from
Dec 27, 2024

Conversation

avelad
Copy link
Member

@avelad avelad commented Dec 26, 2024

The following bug is avoided in Chromium: It is recommended that a robustness level be specified. Not specifying the robustness level could result in unexpected behavior.

It also prevents errors when initializing EME on Android.

Fixes #7760

The following bug is avoided in Chromium: `It is recommended that a robustness level be specified. Not specifying the robustness level could result in unexpected behavior.Understand this warningAI`

It also prevents errors when initializing EME on Android.
@avelad avelad added type: bug Something isn't working correctly priority: P1 Big impact or workaround impractical; resolve before feature release component: Widevine The issue involves the Widevine DRM labels Dec 26, 2024
@avelad avelad added this to the v4.13 milestone Dec 26, 2024
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@@ -427,6 +427,14 @@ shaka.drm.DrmEngine = class {
(this.config_.advanced &&
this.config_.advanced[drmInfo.keySystem] &&
this.config_.advanced[drmInfo.keySystem][robustnessType]) || '';
if (items == '' &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's out of scope for this PR, but I probably should have asked for this expandRobustness function to have JSDoc for the parameters and return type...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@avelad avelad merged commit a018f53 into shaka-project:main Dec 27, 2024
15 of 17 checks passed
@avelad avelad deleted the widevine-default-robustness branch December 27, 2024 14:48
@joeyparrish
Copy link
Member

This doesn't cherry-pick cleanly to v4.12.x, and after spending some time on merge conflicts, I have decided to give up. If you'd like to cherry-pick it to the release branches, please fix the merge conflicts manually and/or reimplement on the v4.12.x branch. Thanks!

The following bug is avoided in Chromium: It is recommended that a robustness level be specified. Not specifying the robustness level could result in unexpected behavior.

I have long disagreed with this warning in Chromium. I think it's misleading and unhelpful, and I have argued against it since it was first introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Widevine The issue involves the Widevine DRM priority: P1 Big impact or workaround impractical; resolve before feature release type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android][Chrome][Widevine][Dash] Error 6002 FAILED_TO_CREATE_CDM
4 participants