Constructor
new ContainerSegmentIndexSource(mpdnon-null, periodnon-null, containerType, indexMetadatanon-null, initMetadata, manifestCreationTime, networkCallback)
Creates an ISegmentIndexSource that constructs a SegmentIndex from an MP4 or
WebM container.
Parameters:
Name | Type | Description |
---|---|---|
mpd |
shaka.dash.mpd.Mpd | |
period |
shaka.dash.mpd.Period | |
containerType |
string | The container type, which must be either 'mp4' or 'webm'. |
indexMetadata |
shaka.util.FailoverUri | The location of the container's segment index. |
initMetadata |
shaka.util.FailoverUri | The location of the container's headers, which is required for WebM containers and ignored for MP4 containers. |
manifestCreationTime |
number | The time, in seconds, when the manifest was created. |
networkCallback |
shaka.util.FailoverUri.NetworkCallback |
- Implements:
- Source:
Members
-
(private) containerType_ :string
-
Type:
- string
-
(private, non-null) indexMetadata_ :shaka.util.FailoverUri
-
Type:
-
(private) initMetadata_ :shaka.util.FailoverUri
-
Type:
-
(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) promise_ :Promise.<!shaka.media.SegmentIndex>
-
Type:
- Promise.<!shaka.media.SegmentIndex>
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: