The MediaKeys interface of EncryptedMediaExtensions API the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.

Documentation MediaKeys by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

read onlykeySystem:String

Methods

@:value({ sessionType : TEMPORARY })createSession(sessionType:MediaKeySessionType = TEMPORARY):MediaKeySession

Returns a new MediaKeySession object, which represents a context for message exchange with a content decryption module (CDM).

Throws:

null

DOMError

setServerCertificate(serverCertificate:ArrayBufferView):Promise<Void>

setServerCertificate(serverCertificate:ArrayBuffer):Promise<Void>

Returns a Promise to a server certificate to be used to encrypt messages to the license server.