Logos DX
    Preparing search index...

    The MediaKeys interface of Encrypted Media Extensions API represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. Available only in secure contexts.

    MDN Reference

    interface MediaKeys {
        createSession(sessionType?: MediaKeySessionType): MediaKeySession;
        getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;
        setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
    }
    Index

    Methods

    • The setServerCertificate() method of the MediaKeys interface provides a server certificate to be used to encrypt messages to the license server.

      MDN Reference

      Parameters

      Returns Promise<boolean>