Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C liability, trademark and document use rules apply.
This specification defines a Media Source Extensions byte stream format specification based on the WebM container format.
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/.
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.
This specification describes a byte stream format based on the WebM container format. It defines the MIME-type parameters used to signal codecs, and provides the necessary format specific definitions for initialization segments, media segments, and random access points required by the byte stream formats section of the Media Source Extensions spec.
This section specifies the parameters that can be used in the MIME-type passed to isTypeSupported()
or addSourceBuffer()
.
Codec ID | Valid with "audio/webm" | Valid with "video/webm" |
---|---|---|
vorbis | true | true |
opus | true | true |
vp8 | false | true |
vp9 | false | true |
Examples of valid MIME-types with a codecs parameter.
A WebM initialization segment must contain a subset of the elements at the start of a typical WebM file.
The user agent must run the append error algorithm with the decode error parameter set to true if any of the following conditions are not met:
The user agent must accept and ignore any elements other than an EBML Header or a Cluster that occur before, in between, or after the Segment Information and Tracks elements.
The user agent must source attribute values for id, kind, label and language for AudioTrack
, VideoTrack
and
TextTrack
objects as described for WebM in the in-band tracks spec [INBANDTRACKS].
A WebM media segment is a single Cluster element.
The user agent uses the following rules when interpreting content in a Cluster:
The user agent must run the append error algorithm with the decode error parameter set to true if any of the following conditions are not met:
The user agent must accept and ignore Cues or Chapters elements that follow a Cluster element.
A SimpleBlock element with its Keyframe flag set signals the location of a random access point for that track. Media segments containing multiple tracks are only considered a random access point if the first SimpleBlock for each track has its Keyframe flag set. The order of the multiplexed blocks must conform to the WebM Muxer Guidelines.