Constructor
new V1StorageCell()
- Implements:
- Source:
Methods
convertPeriod_(old, periodDuration) → {Array.<shaka.extern.StreamDB>}
Parameters:
Name | Type | Description |
---|---|---|
old |
shaka.extern.PeriodDBV1 | |
periodDuration |
number |
Returns:
- Type
- Array.<shaka.extern.StreamDB>
convertSegment_(old, initSegmentKeynullable, appendWindowStart, appendWindowEnd, timestampOffset) → {shaka.extern.SegmentDB}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
old |
shaka.extern.SegmentDBV1 | ||
initSegmentKey |
number |
<nullable> |
|
appendWindowStart |
number | ||
appendWindowEnd |
number | ||
timestampOffset |
number |
Returns:
convertStream_(old, periodStart, periodDuration) → {shaka.extern.StreamDB}
Parameters:
Name | Type | Description |
---|---|---|
old |
shaka.extern.StreamDBV1 | |
periodStart |
number | |
periodDuration |
number |
Returns:
fillMissingVariants_(period)
Take a period and check if the streams need to have variants generated.
Before Shaka Player moved to its variants model, there were no variants.
This will fill missing variants into the given object.
Parameters:
Name | Type | Description |
---|---|---|
period |
shaka.extern.PeriodDBV1 |
getKeyFromSegmentUri_(uri) → {number}
Parameters:
Name | Type | Description |
---|---|---|
uri |
string |
Returns:
- Type
- number
convertManifest(old) → {Promise.<shaka.extern.ManifestDB>}
Parameters:
Name | Type | Description |
---|---|---|
old |
shaka.extern.ManifestDBV1 |
Returns:
- Type
- Promise.<shaka.extern.ManifestDB>
convertSegmentData(old) → {shaka.extern.SegmentDataDB}
Parameters:
Name | Type | Description |
---|---|---|
old |
shaka.extern.SegmentDataDBV1 |
Returns:
updateManifestExpiration(key, expiration) → {Promise}
Replace the expiration time of the manifest stored under |key| with
|newExpiration|. If no manifest is found under |key| then this should
act as a no-op.
Parameters:
Name | Type | Description |
---|---|---|
key |
number | |
expiration |
number |
- Implements:
- Source:
Returns:
- Type
- Promise