Class: shaka.offline.ManifestConverter

Constructor

new ManifestConverter(mechanism, cell)

Create a new manifest converter. Need to know the mechanism and cell that the manifest is from so that all segments paths can be created.
Parameters:
Name Type Description
mechanism string
cell string
Source:

Members

(private) cell_ :string

Type:
  • string
Source:

(private) mechanism_ :string

Type:
  • string
Source:

Methods

(private) createEmptyVariant_(id) → (non-null) {shaka.extern.Variant}

Creates an empty Variant.
Parameters:
Name Type Description
id number
Source:
Returns:
Type
shaka.extern.Variant

createVariants(audiosnon-null, videosnon-null) → (non-null) {Map.<number, !shaka.extern.Variant>}

Recreates Variants from audio and video StreamDB collections.
Parameters:
Name Type Description
audios Array.<!shaka.extern.StreamDB>
videos Array.<!shaka.extern.StreamDB>
Source:
Returns:
Type
Map.<number, !shaka.extern.Variant>

(private) fromInitSegmentDB_(key) → (non-null) {shaka.media.InitSegmentReference}

Parameters:
Name Type Description
key number
Source:
Returns:
Type
shaka.media.InitSegmentReference

fromManifestDB(manifestDB) → {shaka.extern.Manifest}

Convert a |shaka.extern.ManifestDB| object to a |shaka.extern.Manifest| object.
Parameters:
Name Type Description
manifestDB shaka.extern.ManifestDB
Source:
Returns:
Type
shaka.extern.Manifest

fromPeriodDB(period, timeline) → {shaka.extern.Period}

Create a period object from a database period.
Parameters:
Name Type Description
period shaka.extern.PeriodDB
timeline shaka.media.PresentationTimeline
Source:
Returns:
Type
shaka.extern.Period

(private) fromSegmentDB_(index, segmentDB) → (non-null) {shaka.media.SegmentReference}

Parameters:
Name Type Description
index number
segmentDB shaka.extern.SegmentDB
Source:
Returns:
Type
shaka.media.SegmentReference

(private) fromStreamDB_(streamDB) → {shaka.extern.Stream}

Parameters:
Name Type Description
streamDB shaka.extern.StreamDB
Source:
Returns:
Type
shaka.extern.Stream

(private) isAudio_(stream) → {boolean}

Parameters:
Name Type Description
stream shaka.extern.StreamDB
Source:
Returns:
Type
boolean

(private) isText_(stream) → {boolean}

Parameters:
Name Type Description
stream shaka.extern.StreamDB
Source:
Returns:
Type
boolean

(private) isVideo_(stream) → {boolean}

Parameters:
Name Type Description
stream shaka.extern.StreamDB
Source:
Returns:
Type
boolean