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 Returns:
-
(private, static) convertPeriod_(oldValue) → {shakaExtern.PeriodDB}
-
Parameters:
Name Type Description oldValue
shakaExtern.PeriodDBV1 Returns:
- Type
- shakaExtern.PeriodDB
-
(private, static) convertSegment_(oldValue) → {shakaExtern.SegmentDB}
-
Parameters:
Name Type Description oldValue
shakaExtern.SegmentDBV1 Returns:
-
(private, static) convertSegmentData_(oldValue) → {shakaExtern.SegmentDataDB}
-
Parameters:
Name Type Description oldValue
shakaExtern.SegmentDataDBV1 Returns:
-
(private, static) convertStream_(oldValue) → {shakaExtern.StreamDB}
-
Parameters:
Name Type Description oldValue
shakaExtern.StreamDBV1 Returns:
- Type
- shakaExtern.StreamDB
-
(private, static) fillMissingVariants_(period)
-
Parameters:
Name Type Description period
shakaExtern.PeriodDBV1 -
(private, static) put_(store, key, valuenon-null, done)
-
Parameters:
Name Type Description store
IDBObjectStore key
number value
Object done
function() -
(private, static) uriToSegmentId_(urinon-null) → (nullable) {number}
-
Parameters:
Name Type Description uri
string Returns:
- Type
- number
-
(private, static) v1UriToSegmentId_(urinon-null) → (nullable) {number}
-
Parameters:
Name Type Description uri
string Returns:
- Type
- number
-
(private, static) v2UriToSegmentId_(urinon-null) → (nullable) {number}
-
Parameters:
Name Type Description uri
string Returns:
- Type
- number