Copyright © 2024 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.
This specification defines the stream format for using WebM [WebM] content with the Encrypted Media Extensions [ENCRYPTED-MEDIA].
This section describes the status of this document at the time of its publication. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at https://www.w3.org/TR/.
This document was published by the Media Working Group as a Group Note using the Note track.
This Group Note is endorsed by the Media Working Group, but is not endorsed by W3C itself nor its Members.
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.
The W3C Patent Policy does not carry any licensing requirements or commitments on this document.
This document is governed by the 03 November 2023 W3C Process Document.
Encrypted WebM streams [WebM-Encryption] are encrypted at the block level with AES-128 CTR encryption. The container SHALL include appropriate values within the ContentEncryption [Matroska] element.
WebM streams may be partially encrypted, both at the Track level and the block level. In the former case, a subset of Tracks in the stream have a ContentEncryption element. In the latter case, a subset of the blocks within a Track containing a ContentEncryption element are marked as encrypted.
For a stream determined to be in the WebM format [WebM], when a Track [Matroska] is parsed, the presence of a ContentEncKeyID element indicates that blocks in the track may be encrypted.
For the purposes of the Encrypted Block Encountered algorithm, encrypted blocks are those marked encrypted by the Signal Byte [WebM-Encryption].
Initialization Data is always a single key ID, as defined by the "webm" Initialization Data Format [EME-INITDATA-REGISTRY].
Each time a ContentEncKeyID [Matroska] element is encountered in a Track, the Initialization Data Encountered algorithm SHALL be invoked with initDataType = "webm"
[EME-INITDATA-REGISTRY] and initData = the value in that element.
As well as sections marked as non-normative, all authoring guidelines, diagrams, examples, and notes in this specification are non-normative. Everything else in this specification is normative.
The key word SHALL in this document is to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.