Constructor
new Mp4SegmentIndexParser()
Creates an MP4 SIDX parser.
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
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 Throws:
Returns:
- Type
- Array.<!shaka.media.SegmentReference>