Methods
createBuckets_(sessionsnon-null) → {Array.<shaka.offline.SessionDeleter.Bucket_>}
Collects the given sessions into buckets that can be done at the same time.
Since querying with different parameters can give us back different CDMs,
we can't just use one CDM instance to delete everything.
Parameters:
Name | Type | Description |
---|---|---|
sessions |
Array.<shaka.extern.EmeSessionDB> |
- Source:
Returns:
- Type
- Array.<shaka.offline.SessionDeleter.Bucket_>
isCompatible_(a, b) → {boolean}
Returns whether the given session infos are compatible with each other.
Parameters:
Name | Type | Description |
---|---|---|
a |
shaka.extern.EmeSessionDB | |
b |
shaka.extern.EmeSessionDB |
- Source:
Returns:
- Type
- boolean
delete(config, netEnginenon-null, sessionsnon-null) → {Promise.<!Array.<string>>}
Deletes the given sessions. This never fails and instead logs the error.
Parameters:
Name | Type | Description |
---|---|---|
config |
shaka.extern.DrmConfiguration | |
netEngine |
shaka.net.NetworkingEngine | |
sessions |
Array.<shaka.extern.EmeSessionDB> |
- Source:
Returns:
The session IDs that were deleted.
- Type
- Promise.<!Array.<string>>
doDelete_(config, netEnginenon-null, bucket) → {Promise.<!Array.<string>>}
Performs the deletion of the given session IDs.
Parameters:
Name | Type | Description |
---|---|---|
config |
shaka.extern.DrmConfiguration | |
netEngine |
shaka.net.NetworkingEngine | |
bucket |
shaka.offline.SessionDeleter.Bucket_ |
- Source:
Returns:
The sessions that were deleted
- Type
- Promise.<!Array.<string>>