MediaKeySession

This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). Available only in secure contexts.

MDN Reference

Properties

Functions

Link copied to clipboard
suspend fun close()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun generateRequest(initDataType: String, initData: BufferSource)
Link copied to clipboard
fun generateRequestAsync(initDataType: String, initData: BufferSource): Promise<Void>
Link copied to clipboard
suspend fun load(sessionId: String): Boolean
Link copied to clipboard
fun loadAsync(sessionId: String): Promise<Boolean>
Link copied to clipboard
suspend fun remove()
Link copied to clipboard
Link copied to clipboard
suspend fun update(response: BufferSource)
Link copied to clipboard