Constructor
new V2StorageCell(connection, segmentStore, manifestStore, isFixedKey)
Parameters:
Name | Type | Description |
---|---|---|
connection |
IDBDatabase | |
segmentStore |
string | |
manifestStore |
string | |
isFixedKey |
boolean |
- Implements:
- Source:
Members
(private) isFixedKey_ :boolean
Type:
- boolean
Methods
addManifests(manifestsnon-null) → (non-null) {Promise.<!Array.<number>>}
Add a group of manifests. Will return a promise that resolves with a list
of keys for each manifest. If one manifest fails to be added, all manifests
should fail to be added.
Parameters:
Name | Type | Description |
---|---|---|
manifests |
Array.<shaka.extern.ManifestDB> |
- Implements:
- Source:
Returns:
keys
- Type
- Promise.<!Array.<number>>
addSegments(segmentsnon-null) → (non-null) {Promise.<!Array.<number>>}
Add a group of segments. Will return a promise that resolves with a list
of keys for each segment. If one segment fails to be added, all segments
should fail to be added.
Parameters:
Name | Type | Description |
---|---|---|
segments |
Array.<shaka.extern.SegmentDataDB> |
- Implements:
- Source:
Returns:
- Type
- Promise.<!Array.<number>>
convertManifest(old) → {shaka.extern.ManifestDB}
Parameters:
Name | Type | Description |
---|---|---|
old |
shaka.extern.ManifestDB |
Returns:
hasFixedKeySpace() → {boolean}
Check if the cell can support new keys. If a cell has a fixed key space,
then all add-operations will fail as no new keys can be added. All
remove-operations and update-operations should still work.
- Implements:
- Source:
Returns:
- Type
- boolean