Class: shaka.offline.indexeddb.EmeSessionStorageCell

Constructor

new EmeSessionStorageCell(connection, store)

Parameters:
Name Type Description
connection IDBDatabase
store string
Implements:
Source:

Members

(private) store_ :string

Type:
  • string
Source:

Methods

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

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

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

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

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

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

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

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