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