Interface MediaKeys

This EncryptedMediaExtensions API interface the 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?): MediaKeySession;
    setServerCertificate(serverCertificate): Promise<boolean>;
}

Methods