Skip to content

Commit

Permalink
JSON stringify the license request payload to Clearkey servers (#3894)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy authored Feb 25, 2022
1 parent 8e4dc0a commit 035e5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/protection/drm/KeySystemClearKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function KeySystemClearKey(config) {
}

function getLicenseRequestFromMessage(message) {
return JSON.parse(String.fromCharCode.apply(null, new Uint8Array(message)));
return JSON.stringify(JSON.parse(String.fromCharCode.apply(null, new Uint8Array(message))));
}

function getLicenseServerURLFromInitData(/*initData*/) {
Expand Down

0 comments on commit 035e5f0

Please sign in to comment.