Constructor
new DurationSegmentIndexSource(mpdnon-null, periodnon-null, representationnon-null, manifestCreationTime, networkCallback)
Creates an ISegmentIndexSource that constructs a SegmentIndex from a
SegmentTemplate with a segment duration.
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
-
(private, non-null) mpd_ :shaka.dash.mpd.Mpd
-
Type:
-
(private) networkCallback_ :shaka.util.FailoverUri.NetworkCallback
-
Type:
-
(private, non-null) period_ :shaka.dash.mpd.Period
-
Type:
-
(private, non-null) representation_ :shaka.dash.mpd.Representation
-
Type:
-
(private) segmentIndex_ :shaka.media.SegmentIndex
-
Type:
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>
-
(private) createStaticSegmentIndex_() → {shaka.media.SegmentIndex}
-
Creates a static SegmentIndex.
Returns:
-
destroy()
-
Destroys this SegmentIndexSource.
- Implements:
- Source: