MediaKeys

external class MediaKeys(source)

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

Functions

Link copied to clipboard
fun createSession(sessionType: MediaKeySessionType = definedExternally): MediaKeySession
Link copied to clipboard
suspend fun getStatusForPolicy(policy: MediaKeysPolicy = definedExternally): MediaKeyStatus
Link copied to clipboard
Link copied to clipboard
suspend fun setServerCertificate(serverCertificate: BufferSource): Boolean
Link copied to clipboard