Interface: shaka.extern.StorageMechanism

Methods

destroy() → {Promise}

Free all resources used by the storage mechanism and its cells. This should not affect the stored content.
Source:
Returns:
Type
Promise

erase() → {Promise}

Erase all content from storage and leave storage in an empty state. Erase may be called with or without |init|. This allows for storage to be wiped in case of a version mismatch. After calling |erase|, the mechanism will be in an initialized state.
Source:
Returns:
Type
Promise

getCells() → {Map.<string, !shaka.extern.StorageCell>}

Get a map of all the cells managed by the storage mechanism. Editing the map should have no effect on the storage mechanism. The map key is the cell's address in the mechanism and should be consistent between calls to |getCells|.
Source:
Returns:
Type
Map.<string, !shaka.extern.StorageCell>

getEmeSessionCell() → {shaka.extern.EmeSessionStorageCell}

Get the current EME session storage cell.
Source:
Returns:
Type
shaka.extern.EmeSessionStorageCell

init() → {Promise}

Initialize the storage mechanism for first use. This should only be called once. Calling |init| multiple times has an undefined behaviour.
Source:
Returns:
Type
Promise