Abstract

This specification defines a container-independent initialization data format for specifying a list of key ID(s) 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.

Status of This Document

This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.

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.

This document was published by the HTML Working Group as an Editor's Draft. If you wish to make comments regarding this document, please send them to public-html-media@w3.org (subscribe, archives). All comments are welcome.

Publication as an Editor's Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.

This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.

This document is governed by the 1 August 2014 W3C Process Document.

Table of Contents

1. Initialization Data Format

The format is a JSON object containing the following member:

"kids"
An array of key ID(s). Each element of the array is the base64url encoding of the octet sequence containing the key ID value.
Note

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 TextEncoder interface [encoding].

1.1 Example

This section is non-normative.

The following example will generate a license request for two key ID(s). (Line breaks are for readability only.)

Example 1
{
  "kids":
    [
     "67ef0gd8pvfd0",
     "77ef0gd8pvfd0"
    ],
}
See a problem? Select text and .

A. References

A.1 Normative references

[encoding]
Anne van Kesteren; Joshua Bell; Addison Phillips. Encoding. 16 September 2014. W3C Candidate Recommendation. URL: http://www.w3.org/TR/encoding/