MediaKeyStatusMap
A read-only map of key IDs to the current status of the associated key.
For more information, see https://www.w3.org/TR/encrypted-media/#dom-mediakeystatusmap
Properties
size
readonlysize:number
Methods
forEach()
forEach(
callbackfn,thisArg?):void
Parameters
callbackfn
(value, key, parent) => void
thisArg?
any
Returns
void
get()
get(
keyId):MediaKeyStatus
Gets the media key status.
For more information, see https://www.w3.org/TR/encrypted-media/#dom-mediakeystatusmap-get.
Parameters
keyId
ArrayBuffer
The key ID of the key.
Returns
has()
has(
keyId):boolean
Checks if they key status for the key id is present in the map.
For more information, see https://www.w3.org/TR/encrypted-media/#dom-mediakeystatusmap-has.
Parameters
keyId
ArrayBuffer
The key ID of the key.
Returns
boolean
Last updated: Oct 02, 2025

