 MediaKeys
package js.html.eme Available on js
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:
https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys
Variables
read onlykeySystem:String
Methods
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.

    
{'path': 'public/docs/haxe~javascript/html/eme/mediakeys.html', 'source': 'DevDocs.IO'}