Class: shaka.dash.ContainerSegmentIndexSource

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
Source:

(private, non-null) indexMetadata_ :shaka.util.FailoverUri

Type:
Source:

(private) initMetadata_ :shaka.util.FailoverUri

Type:
Source:

(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) promise_ :Promise.<!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: