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 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
abstract fun forEach(action: (value: MediaKeyStatus, key: BufferSource) -> Unit)
Link copied to clipboard

open 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 override fun has(key: BufferSource): Boolean

The has() method of the whether a value has been associated with the given key.

Link copied to clipboard
abstract fun keys(): JsIterator<BufferSource>
Link copied to clipboard