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, urlnon-null, networkCallback) → {Array.<!shaka.media.SegmentReference>}

Parses SegmentReferences from |sidxData|.
Parameters:
Name Type Description
sidxData DataView The MP4's container's SIDX.
sidxOffset number The SIDX's offset, in bytes, from the start of the MP4 container.
url Array.<!goog.Uri> The location of each SegmentReference.
networkCallback shaka.util.FailoverUri.NetworkCallback
Source:
Returns:
SegmentReferences on success; otherwise, return null.
Type
Array.<!shaka.media.SegmentReference>

(private) parseInternal_(sidxDatanon-null, sidxOffset, urlnon-null, networkCallback) → {Array.<!shaka.media.SegmentReference>}

Parses SegmentReferences from an ISO BMFF SIDX structure.
Parameters:
Name Type Description
sidxData DataView
sidxOffset number
url Array.<!goog.Uri>
networkCallback shaka.util.FailoverUri.NetworkCallback
Source:
See:
  • ISO/IEC 14496-12:2012 section 4.2 and 8.16.3
Throws:
RangeError
Returns:
SegmentReferences on success; otherwise, return null.
Type
Array.<!shaka.media.SegmentReference>