mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-24 17:35:10 +03:00
f539147d48
This fixes all the license headers in the main library, which corrects the appearance of the main license in the compiled output. It seems that the `!` in the header forces the compiler to keep it in the output. I believe older compiler releases did this purely based on `@license`. Issue #2638 Change-Id: I7f0e918caad10c9af689c9d07672b7fe9be7b2f3
45 lines
1.0 KiB
JavaScript
45 lines
1.0 KiB
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.provide('shaka.offline.indexeddb.V5StorageCell');
|
|
|
|
goog.require('shaka.offline.indexeddb.BaseStorageCell');
|
|
|
|
|
|
/**
|
|
* The V5StorageCell is for all stores that follow the shaka.externs V5 offline
|
|
* types introduced in v3.0.
|
|
*
|
|
* @implements {shaka.extern.StorageCell}
|
|
*/
|
|
shaka.offline.indexeddb.V5StorageCell = class
|
|
extends shaka.offline.indexeddb.BaseStorageCell {
|
|
/** @override */
|
|
hasFixedKeySpace() {
|
|
// This makes the cell read-write.
|
|
return false;
|
|
}
|
|
|
|
/** @override */
|
|
addSegments(segments) {
|
|
return this.add(this.segmentStore_, segments);
|
|
}
|
|
|
|
/** @override */
|
|
addManifests(manifests) {
|
|
return this.add(this.manifestStore_, manifests);
|
|
}
|
|
|
|
/** @override */
|
|
convertManifest(old) {
|
|
// JSON serialization turns Infinity into null, so turn it back now.
|
|
if (old.expiration == null) {
|
|
old.expiration = Infinity;
|
|
}
|
|
return Promise.resolve(/** @type {shaka.extern.ManifestDB} */(old));
|
|
}
|
|
};
|