For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface 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

interface MediaKeyStatusMap {
    size: number;
    "[iterator]"(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
    entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
    forEach(
        callbackfn: (
            value: MediaKeyStatus,
            key: BufferSource,
            parent: MediaKeyStatusMap,
        ) => void,
        thisArg?: any,
    ): void;
    get(keyId: BufferSource): MediaKeyStatus | undefined;
    has(keyId: BufferSource): boolean;
    keys(): MediaKeyStatusMapIterator<BufferSource>;
    values(): MediaKeyStatusMapIterator<MediaKeyStatus>;
}
Index
size: number

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

MDN Reference

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

    MDN Reference

    Parameters

    Returns boolean

Was this helpful?