Class: shaka.dash.ListSegmentIndexSource

Constructor

new ListSegmentIndexSource(mpdnon-null, periodnon-null, representationnon-null, manifestCreationTime, networkCallback)

Creates an ISegmentIndexSource that constructs a SegmentIndex from a SegmentList.
Parameters:
Name Type Description
mpd shaka.dash.mpd.Mpd
period shaka.dash.mpd.Period
representation shaka.dash.mpd.Representation
manifestCreationTime number The time, in seconds, when the manifest was created.
networkCallback shaka.util.FailoverUri.NetworkCallback
Implements:
Source:

Members

(private) manifestCreationTime_ :number

Type:
  • number
Source:

(private, non-null) mpd_ :shaka.dash.mpd.Mpd

Type:
Source:

(private) networkCallback_ :shaka.util.FailoverUri.NetworkCallback

Type:
Source:

(private, non-null) period_ :shaka.dash.mpd.Period

Type:
Source:

(private, non-null) representation_ :shaka.dash.mpd.Representation

Type:
Source:

(private) segmentIndex_ :shaka.media.SegmentIndex

Type:
Source:

Methods

create() → (non-null) {Promise.<!shaka.media.SegmentIndex>}

Creates the SegmentIndex. The SegmentIndexSource retains ownership of the SegmentIndex.
Implements:
Source:
Returns:
Type
Promise.<!shaka.media.SegmentIndex>

destroy()

Destroys this SegmentIndexSource.
Implements:
Source: