MediaKeyStatusMap

js.html.eme.MediaKeyStatusMap (extern class)

The MediaKeyStatusMap interface of the EncryptedMediaExtensions API is a read-only map of media key statuses by key IDs.

Documentation MediaKeyStatusMap by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Instance Members

size: Int

Returns the number of key/value pars in the status map.


Returns a boolean asserting whether a value has been associated with the given key.

Name Type
keyId js.lib.ArrayBufferView
Returns
Bool

Returns the value associated with the given key, or undefined if there is none.

Name Type
keyId js.lib.ArrayBufferView
Returns
Dynamic

Returns a new Iterator object containing an array of [key, value] for each element in the status map, in insertion order.

Returns
js.html.MediaKeyStatusMapIterator

Returns a new Iterator object containing keys for each element in the status map, in insertion order.

Returns
js.html.MediaKeyStatusMapIterator

Returns a new Iterator object containing values for each element in the status map, in insertion order.

Returns
js.html.MediaKeyStatusMapIterator

forEach(callback: Dynamic, ?thisArg: Dynamic): Void

Calls callback once for each key-value pair in the status map, in insertion order. If argument is present it will be passed to the callback.

Name Type Default
callback Dynamic
thisArg Dynamic (optional)