[Bug 24419] Clear Key: Define license request format

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24419

--- Comment #3 from David Dorwin <ddorwin@google.com> ---
For the format, I propose non-JWK[S] JSON with the key IDs encoded in base64url

This has the advantages of being:
 * mostly consistent with the license format (JSON and base64url key IDs,
though not JWK[S])
 * parsable by JavaScript
 * extensible (vs. a simple array of key IDs)

Here's an example:
{
  "kids": 
    [ "67ef0gd8pvfd0=",
      "77ef0gd8pvfd0="
    ]
}


(In reply to David Dorwin from comment #2)
> (In reply to Adrian Bateman [MSFT] from comment #1)
> > Since the MediaKeyMessageEvent defines the message as a Uint8Array, which I
> > think is needed for some CDMs, how would you overload this to pass a JSON
> > license request?
> 
> The JSON would need to be base64url encoded like the license format.

Ignore the above reply. We should use the Encoding API:
http://www.w3.org/TR/encoding/

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 7 May 2014 23:28:50 UTC