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:
-
(private, non-null) subtitlesUrl_ :shaka.util.FailoverUri
-
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>
-
destroy()
-
Destroys this SegmentIndexSource.
- Implements:
- Source: