Class: shaka.media.OfflineSegmentIndexSource

Constructor

new OfflineSegmentIndexSource(segmentInfosnon-null)

Creates an ISegmentIndexSource that constructs a SegmentIndex from an existing set of SegmentReferences.
Parameters:
Name Type Description
segmentInfos Array.<!shaka.util.ContentDatabase.SegmentInformation>
Implements:
Source:

Members

(private) segmentIndex_ :shaka.media.SegmentIndex

Type:
Source:

(private) segmentInfos_ :Array.<!shaka.util.ContentDatabase.SegmentInformation>

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: