Class: shaka.offline.indexeddb.V1StorageCell

Constructor

new V1StorageCell()

Implements:
Source:

Methods

convertPeriod_(old, periodDuration) → {Array.<shaka.extern.StreamDB>}

Parameters:
Name Type Description
old shaka.extern.PeriodDBV1
periodDuration number
Source:
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
Source:
Returns:
Type
shaka.extern.SegmentDB

convertStream_(old, periodStart, periodDuration) → {shaka.extern.StreamDB}

Parameters:
Name Type Description
old shaka.extern.StreamDBV1
periodStart number
periodDuration number
Source:
Returns:
Type
shaka.extern.StreamDB

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
Source:

getKeyFromSegmentUri_(uri) → {number}

Parameters:
Name Type Description
uri string
Source:
Returns:
Type
number

convertManifest(old) → {Promise.<shaka.extern.ManifestDB>}

Parameters:
Name Type Description
old shaka.extern.ManifestDBV1
Source:
Returns:
Type
Promise.<shaka.extern.ManifestDB>

convertSegmentData(old) → {shaka.extern.SegmentDataDB}

Parameters:
Name Type Description
old shaka.extern.SegmentDataDBV1
Source:
Returns:
Type
shaka.extern.SegmentDataDB

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