The bytes provided through appendBuffer() and appendStream() for a SourceBuffer form a logical byte stream. The format of this byte stream depends on the media container format in use and is defined in a byte stream format specification. Byte stream format specifications based on WebM , the ISO Base Media File Format, and MPEG-2 Transport Streams are provided below. These format specifications are intended to be the authoritative source for how data from these containers is formatted and passed to a SourceBuffer. If a MediaSource implementation claims to support any of these container formats, then it must implement the corresponding byte stream format specification described below.
The bytes provided through appendBuffer() and appendStream() for a SourceBuffer form a logical byte stream. The format of this byte stream depends on the media container format in use and is defined in a byte stream format specification. Byte stream format specifications based on WebM, the ISO Base Media File Format, MPEG-2 Transport Streams, and Ogg are provided below. These format specifications are intended to be the authoritative source for how data from these containers is formatted and passed to a SourceBuffer. If a MediaSource implementation claims to support any of these container formats, then it must implement the corresponding byte stream format specification described below.
The byte stream format specifications below are not intended to define new storage formats. They simply outline the subset of existing storage format structures that implementations of this specification will accept.
This section defines segment formats for implementations that choose to support + Ogg byte streams specified in RFC 3533.
+ +The following rules must apply to all Ogg segments:
+The following rules apply to all initialization segments.
+If a codec which uses sparse random access points is in use + the first complete packet for that stream in each media segment + should begin with a random access point for that stream.
+Random access points are Ogg packets which meet codec-specific + criteria for random-access.
+