- From: <bugzilla@jessica.w3.org>
- Date: Mon, 18 Aug 2014 20:31:26 +0000
- To: public-html-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26401 --- Comment #2 from Joe Steele <steele@adobe.com> --- In example 8.2 'Selecting a Supported Key System and Using Initialization Data from the "encrypted" Event', the code assumes that license URL can be preset by the application, which the example does in the selectKeySystem() function. I would like the example to remove all references to the global var licenseUrl and instead use the URL that is returned in the message. Here is the example code for the licenseRequestReady() function I would like to see instead. function licenseRequestReady(event) { var request = event.message; var licenseUrl = event.destinationURL; // <== THIS IS THE NEW BIT var xmlhttp = new XMLHttpRequest(); xmlhttp.keySession = event.target; xmlhttp.open("POST", licenseUrl); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4) { var license = new Uint8Array(xmlhttp.response); xmlhttp.keySession.update(license).catch( console.error.bind(console, "update() failed") ); } } xmlhttp.send(request); } Examples 8.3, 8.4 and 8.5 make a similar assumption about where licenseUrl is coming from. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Monday, 18 August 2014 20:31:27 UTC