Interface: shaka.extern.EmeSessionStorageCell

Similar to storage cells (shaka.extern.StorageCell), an EmeSessionStorageCell stores data persistently. This only stores the license's session info, not the license itself. The license itself is stored using EME.
Implementations:
Source:

Methods

add(sessionsnon-null) → (non-null) {Promise}

Adds the given sessions to the store.
Parameters:
Name Type Description
sessions Array.<shaka.extern.EmeSessionDB>
Source:
Returns:
Type
Promise

destroy() → (non-null) {Promise}

Free all resources used by this cell. This won't affect the stored content.
Source:
Returns:
Type
Promise

getAll() → (non-null) {Promise.<!Array.<shaka.extern.EmeSessionDB>>}

Gets the currently stored sessions.
Source:
Returns:
Type
Promise.<!Array.<shaka.extern.EmeSessionDB>>

remove(sessionIdsnon-null) → (non-null) {Promise}

Removes the given session IDs from the store.
Parameters:
Name Type Description
sessionIds Array.<string>
Source:
Returns:
Type
Promise