@nextcloud/dialogs
    Preparing search index...

    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;
        forEach(
            callbackfn: (
                value: MediaKeyStatus,
                key: BufferSource,
                parent: MediaKeyStatusMap,
            ) => void,
            thisArg?: any,
        ): void;
        get(keyId: BufferSource): undefined | MediaKeyStatus;
        has(keyId: BufferSource): boolean;
    }
    Index

    Properties

    Methods

    Properties

    size: number

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

    MDN Reference

    Methods

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

      MDN Reference

      Parameters

      Returns undefined | MediaKeyStatus

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

      MDN Reference

      Parameters

      Returns boolean