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:

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.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/eme/MediaKeys.html