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
(private) createEmptyVariant_(id) → (non-null) {shakaExtern.Variant}
Creates an empty Variant.
Parameters:
Name | Type | Description |
---|---|---|
id |
number |
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> |
Returns:
- Type
- Array.<!shakaExtern.Variant>
(private) fromInitSegmentDB_(key) → (non-null) {shaka.media.InitSegmentReference}
Parameters:
Name | Type | Description |
---|---|---|
key |
number |
Returns:
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 |
Returns:
(private) fromStreamDB_(streamDB) → {shakaExtern.Stream}
Parameters:
Name | Type | Description |
---|---|---|
streamDB |
shakaExtern.StreamDB |
Returns:
- Type
- shakaExtern.Stream
(private) isAudio_(stream) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
stream |
shakaExtern.StreamDB |
Returns:
- Type
- boolean
(private) isText_(stream) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
stream |
shakaExtern.StreamDB |
Returns:
- Type
- boolean
(private) isVideo_(stream) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
stream |
shakaExtern.StreamDB |
Returns:
- Type
- boolean