Class: shaka.media.TextSegmentIndexSource

Constructor

new TextSegmentIndexSource(subtitlesUrlnon-null)

Creates an ISegmentIndexSource that constructs a SegmentIndex from a single subtitles URL.
Parameters:
Name Type Description
subtitlesUrl shaka.util.FailoverUri
Implements:
Source:

Members

(private) segmentIndex_ :shaka.media.SegmentIndex

Type:
Source:

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

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: