MediaKeys
js.html.eme.MediaKeys (extern class)
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:
Instance Members
keySystem: String
createSession(?sessionType: MediaKeySessionType = TEMPORARY): MediaKeySession
Returns a new MediaKeySession
object, which represents a context for message exchange with a content decryption module (CDM).
Name | Type | Default |
---|---|---|
sessionType |
MediaKeySessionType | TEMPORARY |
Returns |
---|
MediaKeySession |
setServerCertificate(serverCertificate: js.lib.ArrayBufferView): js.lib.Promise<Void>
Returns a Promise
to a server certificate to be used to encrypt messages to the license server.
Name | Type |
---|---|
serverCertificate |
js.lib.ArrayBufferView |
Returns |
---|
js.lib.Promise<Void> |