This specification defines a container-independent initialization data format for specifying a list of key IDs to the createSession()
method defined by the Encrypted Media Extensions.
This type can be used by applications to directly provide information necessary to generate a license request without using media data or constructing container-specific formats.
Unlike other similar specifications, this one does not document a stream format or behavior related to processing media data. This type and format are not used in the Initialization Data Encountered algorithm.
The Working Group maintains a list of all bug reports that the editors have not yet tried to address.
Implementors should be aware that this specification is not stable. Implementors who are not taking part in the discussions are likely to find the specification changing out from under them in incompatible ways. Vendors interested in implementing this specification before it eventually reaches the Candidate Recommendation stage should join the mailing list mentioned below and take part in the discussions.
The format is a JSON object containing the following member:
See Using base64url.
When passed to the update()
method as the Uint8Array response parameter, the JSON string must be encoded in UTF-8 as specified in the Encoding specification [[!encoding]].
Applications may encode the JSON string using the [[!encoding]].
The following example will generate a license request for two key IDs. (Line breaks are for readability only.)
{ "kids": [ "67ef0gd8pvfd0", "77ef0gd8pvfd0" ], }