Class: shaka.media.Mp4SegmentIndexParser

Constructor

new Mp4SegmentIndexParser()

Creates an MP4 SIDX parser.
Source:

Members

(static, constant) SIDX_INDICATOR :number

Indicates the SIDX box structure. It is equal to the string 'sidx' as a 32-bit unsigned integer.
Type:
  • number
Source:

Methods

parse(sidxDatanon-null, sidxOffset, urisnon-null, presentationTimeOffset) → (non-null) {Array.<!shaka.media.SegmentReference>}

Parses SegmentReferences from an ISO BMFF SIDX structure.
Parameters:
Name Type Description
sidxData ArrayBuffer The MP4's container's SIDX.
sidxOffset number The SIDX's offset, in bytes, from the start of the MP4 container.
uris Array.<string> The possible locations of the MP4 file that contains the segments.
presentationTimeOffset number
Source:
Throws:
Returns:
Type
Array.<!shaka.media.SegmentReference>