Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
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

readonly size: 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

MediaKeyStatus

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 modified on February 25, 2026