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

Prevent Widevine access request on "encrypted" w/o configured license url #6644

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Aug 22, 2024

This PR will...

Why is this Pull Request needed?

Prevents the browser from requesting access to the Widevine key-system when the media contains Widevine keys, but the player is not configured to requests a license (only configured for Playready).

Are there any points in the code the reviewer needs to double check?

onMediaEncrypted logic for the selected key-system is based on the premise that the access request(s) keys and not the result of the first passing access request. This may need some work when the initData contains multiple keys for different key-systems.

Resolves issues:

Resolved #6005

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.0 milestone Aug 22, 2024
cjpillsbury
cjpillsbury previously approved these changes Aug 22, 2024
Copy link
Collaborator

@cjpillsbury cjpillsbury left a comment

Choose a reason for hiding this comment

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

LGTM! 😎

@robwalch robwalch changed the title Prevent Widevine access request on "encrypted" w/o license Prevent Widevine access request on "encrypted" w/o configured license url Aug 23, 2024
@robwalch robwalch merged commit 4ac240c into master Aug 27, 2024
16 checks passed
@robwalch robwalch deleted the bugfix/playready-config-with-widevine-gate branch August 27, 2024 19:18
robwalch added a commit that referenced this pull request Jan 10, 2025
Changes picked from #6644 and #6948 with changes for feedback from @cjpillsbury
robwalch added a commit that referenced this pull request Jan 10, 2025
…for playback (#6946)

cherry-picked d602e36
Author: Christian Pillsbury <[email protected]> (+1 squashed commit)
Squashed commits:
[4522cb0] Only use selected key-system in EME "mediaencrypted" event handler
Changes picked from #6644 and #6948 with changes for feedback from @cjpillsbury
robwalch added a commit that referenced this pull request Jan 10, 2025
…for playback (#6946)

cherry-picked d602e36
Author: Christian Pillsbury <[email protected]> (+1 squashed commit)
Squashed commits:
[4522cb0] Only use selected key-system in EME "mediaencrypted" event handler
Changes picked from #6644 and #6948 with changes for feedback from @cjpillsbury
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

PlayReady EME "encrypted" PSSH initData payload ignored
2 participants