MediaKeyStatusMap

The MediaKeyStatusMap interface of the Encrypted Media Extensions API is a read-only map of media key statuses by key IDs. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard
open external override val size: Int

The size read-only property of the MediaKeyStatusMap interface returns the number of key/value paIrs in the status map.

Functions

Link copied to clipboard
Link copied to clipboard
open external fun forEach(action: (value: MediaKeyStatus, key: BufferSource) -> Unit)
Link copied to clipboard
open external override fun get(key: BufferSource): MediaKeyStatus?

The get() method of the MediaKeyStatusMap interface returns the status value associated with the given key, or undefined if there is none.

Link copied to clipboard
open external override fun has(key: BufferSource): Boolean

The has() method of the MediaKeyStatusMap interface returns a Boolean, asserting whether a value has been associated with the given key.

Link copied to clipboard
open external override fun keys(): JsIterator<BufferSource>
Link copied to clipboard
open external fun values(): JsIterator<MediaKeyStatus>