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
Methods
createEmptyVariant_(id) → {shaka.extern.Variant}
Creates an empty Variant.
Parameters:
Name | Type | Description |
---|---|---|
id |
number |
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 |
Returns:
- Type
- Map.<number, !shaka.extern.Variant>
fromInitSegmentDB_(key) → {shaka.media.InitSegmentReference}
Parameters:
Name | Type | Description |
---|---|---|
key |
number |
Returns:
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:
fromSegmentDB_(index, segmentDB, streamDB) → {shaka.media.SegmentReference}
Parameters:
Name | Type | Description |
---|---|---|
index |
number | |
segmentDB |
shaka.extern.SegmentDB | |
streamDB |
shaka.extern.StreamDB |
Returns:
fromStreamDB_(streamDB, timeline) → {shaka.extern.Stream}
Parameters:
Name | Type | Description |
---|---|---|
streamDB |
shaka.extern.StreamDB | |
timeline |
shaka.media.PresentationTimeline |
Returns:
- Type
- shaka.extern.Stream
isAudio_(streamDB) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
streamDB |
shaka.extern.StreamDB |
Returns:
- Type
- boolean
isImage_(streamDB) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
streamDB |
shaka.extern.StreamDB |
Returns:
- Type
- boolean
isText_(streamDB) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
streamDB |
shaka.extern.StreamDB |
Returns:
- Type
- boolean
isVideo_(streamDB) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
streamDB |
shaka.extern.StreamDB |
Returns:
- Type
- boolean