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: Use correct callback function signature for PlayReady license request callbacks. #81

Merged
merged 1 commit into from
May 1, 2019

Conversation

misteroneill
Copy link
Member

The previous code (and tests) had faulty assumptions about the callback signature of a videojs.xhr() call. The second argument is not the responseBody but the response object.

@@ -49,6 +49,8 @@ By default, videojs-contrib-eme is not able to decrypt any audio/video.

In order to decrypt audio/video, a user must pass in either relevant license URIs, or methods specific to a source and its combination of key system and codec. These are provided to the plugin via either videojs-contrib-eme's plugin options or source options.

If you're new to DRM on the web, read [about how EME is used to play protected content on the web](https://developers.google.com/web/fundamentals/media/eme).

Copy link
Member Author

Choose a reason for hiding this comment

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

Added this because it seems like a useful thing for helping users understand the purpose of this plugin.

@misteroneill misteroneill merged commit 07a1f25 into master May 1, 2019
@misteroneill misteroneill deleted the playready-callback branch May 1, 2019 17:40
misteroneill added a commit that referenced this pull request May 1, 2019
squarebracket added a commit to squarebracket/videojs-contrib-eme that referenced this pull request May 3, 2019
…s#81

PR videojs#81 fixed the callback signature for ms-prefixed, which was
incorrect. However, eme was being used correctly, and so the PR broke
eme support on Edge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants