Class: shaka.offline.indexeddb.V1StorageCell

Constructor

new V1StorageCell()

Implements:
Source:

Methods

(private, static) convertPeriod_(old) → {shaka.extern.PeriodDB}

Parameters:
Name Type Description
old shaka.extern.PeriodDBV1
Source:
Returns:
Type
shaka.extern.PeriodDB

(private, static) convertSegment_(old) → {shaka.extern.SegmentDB}

Parameters:
Name Type Description
old shaka.extern.SegmentDBV1
Source:
Returns:
Type
shaka.extern.SegmentDB

(private, static) convertStream_(old) → {shaka.extern.StreamDB}

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

(private, static) 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:

(private, static) getKeyFromSegmentUri_(uri) → {number}

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

convertManifest(old) → {shaka.extern.ManifestDB}

Parameters:
Name Type Description
old shaka.extern.ManifestDBV1
Source:
Returns:
Type
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) → (non-null) {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