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

cell_ :string

Type:
  • string
Source:

mechanism_ :string

Type:
  • string
Source:

Methods

createEmptyVariant_(id) → {shaka.extern.Variant}

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

createVariants(audiosnon-null, videosnon-null, timeline) → {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>
timeline shaka.media.PresentationTimeline
Source:
Returns:
Type
Map.<number, !shaka.extern.Variant>

fromInitSegmentDB_(key) → {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

fromSegmentDB_(index, segmentDB) → {shaka.media.SegmentReference}

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

fromStreamDB_(streamDB, timeline) → {shaka.extern.Stream}

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

isAudio_(streamDB) → {boolean}

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

isImage_(streamDB) → {boolean}

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

isText_(streamDB) → {boolean}

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

isVideo_(streamDB) → {boolean}

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