Skip to content

Commit

Permalink
fix: use new method signature for requestPlayreadyLicense from videoj…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
squarebracket committed May 3, 2019
1 parent 4d91929 commit 3fc392b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/eme.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,7 @@ const setMediaKeys = ({
};

const defaultPlayreadyGetLicense = (keySystemOptions) => (emeOptions, keyMessage, callback) => {
requestPlayreadyLicense(keySystemOptions, keyMessage, emeOptions, (err, response, responseBody) => {
if (err) {
callback(err);
return;
}

callback(null, responseBody);
});
requestPlayreadyLicense(keySystemOptions, keyMessage, emeOptions, callback);
};

const defaultGetLicense = (keySystemOptions) => (emeOptions, keyMessage, callback) => {
Expand Down

0 comments on commit 3fc392b

Please sign in to comment.