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) {shakaExtern.Variant}

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

createVariants(audiosnon-null, videosnon-null) → (non-null) {Array.<!shakaExtern.Variant>}

Recreates Variants from audio and video StreamDB collections.
Parameters:
Name Type Description
audios Array.<!shakaExtern.StreamDB>
videos Array.<!shakaExtern.StreamDB>
Source:
Returns:
Type
Array.<!shakaExtern.Variant>

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

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

fromManifestDB(manifestDB) → {shakaExtern.Manifest}

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

fromPeriodDB(period, timeline) → {shakaExtern.Period}

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

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

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

(private) fromStreamDB_(streamDB) → {shakaExtern.Stream}

Parameters:
Name Type Description
streamDB shakaExtern.StreamDB
Source:
Returns:
Type
shakaExtern.Stream

(private) isAudio_(stream) → {boolean}

Parameters:
Name Type Description
stream shakaExtern.StreamDB
Source:
Returns:
Type
boolean

(private) isText_(stream) → {boolean}

Parameters:
Name Type Description
stream shakaExtern.StreamDB
Source:
Returns:
Type
boolean

(private) isVideo_(stream) → {boolean}

Parameters:
Name Type Description
stream shakaExtern.StreamDB
Source:
Returns:
Type
boolean