as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

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

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 updated: Oct 02, 2025