Class: shaka.offline.indexeddb.EmeSessionStorageCell

Constructor

new EmeSessionStorageCell(connection, store)

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

Members

store_ :string

Type:
  • string
Source:

Methods

add(sessionsnon-null) → {Promise}

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

destroy() → {Promise}

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

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

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

remove(sessionIdsnon-null) → {Promise}

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