Class: shaka.offline.DBUpgradeFromVersion1

Constructor

new DBUpgradeFromVersion1()

Implements:
Source:

Methods

upgrade(db, transaction)

Parameters:
Name Type Description
db IDBDatabase
transaction IDBTransaction
Implements:
Source:

(private, static) convertManifest_(oldValue) → {shakaExtern.ManifestDB}

Parameters:
Name Type Description
oldValue shakaExtern.ManifestDBV1
Source:
Returns:
Type
shakaExtern.ManifestDB

(private, static) convertPeriod_(oldValue) → {shakaExtern.PeriodDB}

Parameters:
Name Type Description
oldValue shakaExtern.PeriodDBV1
Source:
Returns:
Type
shakaExtern.PeriodDB

(private, static) convertSegment_(oldValue) → {shakaExtern.SegmentDB}

Parameters:
Name Type Description
oldValue shakaExtern.SegmentDBV1
Source:
Returns:
Type
shakaExtern.SegmentDB

(private, static) convertSegmentData_(oldValue) → {shakaExtern.SegmentDataDB}

Parameters:
Name Type Description
oldValue shakaExtern.SegmentDataDBV1
Source:
Returns:
Type
shakaExtern.SegmentDataDB

(private, static) convertStream_(oldValue) → {shakaExtern.StreamDB}

Parameters:
Name Type Description
oldValue shakaExtern.StreamDBV1
Source:
Returns:
Type
shakaExtern.StreamDB

(private, static) fillMissingVariants_(period)

Parameters:
Name Type Description
period shakaExtern.PeriodDBV1
Source:

(private, static) put_(store, key, valuenon-null, done)

Parameters:
Name Type Description
store IDBObjectStore
key number
value Object
done function()
Source:

(private, static) uriToSegmentId_(urinon-null) → (nullable) {number}

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

(private, static) v1UriToSegmentId_(urinon-null) → (nullable) {number}

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

(private, static) v2UriToSegmentId_(urinon-null) → (nullable) {number}

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