MediaKeyStatusMap
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.
Instance Members
size: Int
Returns the number of key/value pars in the status map.
has(keyId: js.lib.ArrayBufferView): Bool
Returns a boolean asserting whether a value has been associated with the given key.
Name | Type |
---|---|
keyId |
js.lib.ArrayBufferView |
Returns |
---|
Bool |
get(keyId: js.lib.ArrayBufferView): Dynamic
Returns the value associated with the given key, or undefined
if there is none.
Name | Type |
---|---|
keyId |
js.lib.ArrayBufferView |
Returns |
---|
Dynamic |
entries(): js.html.MediaKeyStatusMapIterator
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 |
values(): js.html.MediaKeyStatusMapIterator
Returns a new Iterator
object containing values for each element in the status map, in insertion order.
Returns |
---|
js.html.MediaKeyStatusMapIterator |
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) |