Package-level declarations

Types

Link copied to clipboard

The MediaKeyMessageEvent interface of the Encrypted Media Extensions API contains the content and related data when the content decryption module generates a message for the session. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
sealed interface MediaKeyMessageType
Link copied to clipboard
class MediaKeys

The MediaKeys interface of Encrypted Media Extensions API represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. Available only in secure contexts.

Link copied to clipboard

The MediaKeySession interface of the Encrypted Media Extensions API represents a context for message exchange with a content decryption module (CDM). Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
sealed interface MediaKeySessionType
Link copied to clipboard
interface MediaKeysPolicy
Link copied to clipboard
sealed interface MediaKeysRequirement
Link copied to clipboard
sealed interface MediaKeyStatus
Link copied to clipboard

The MediaKeyStatusMap interface of the Encrypted Media Extensions API is a read-only map of media key statuses by key IDs. Available only in secure contexts.

Link copied to clipboard

The MediaKeySystemAccess interface of the Encrypted Media Extensions API provides access to a Key System for decryption and/or a content protection provider. Available only in secure contexts.

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
inline suspend fun MediaKeySession.close()

The close() method of the MediaKeySession interface notifies that the current media session is no longer needed, and that the content decryption module should release any resources associated with this object and close it.

Link copied to clipboard

The MediaKeySystemAccess.createMediaKeys() method returns a ``js-nolint createMediaKeys() `` None.

Link copied to clipboard
inline suspend fun MediaKeySession.generateRequest(initDataType: String, initData: BufferSource)

The generateRequest() method of the MediaKeySession interface returns a Promise after generating a license request based on initialization data.

Link copied to clipboard

The getStatusForPolicy() method of the MediaKeys interface is used to check whether the Content Decryption Module (CDM) would allow the presentation of encrypted media data using the keys, based on the specified policy requirements.

Link copied to clipboard
inline suspend fun MediaKeySession.load(sessionId: String): Boolean

The load() method of the MediaKeySession interface returns a Promise that resolves to a boolean value after loading data for a specified session object.

Link copied to clipboard
inline suspend fun MediaKeySession.remove()

The remove() method of the MediaKeySession interface returns a Promise after removing any session data associated with the current object.

Link copied to clipboard
inline suspend fun MediaKeys.setServerCertificate(serverCertificate: BufferSource): Boolean

The setServerCertificate() method of the MediaKeys interface provides a server certificate to be used to encrypt messages to the license server.

Link copied to clipboard
inline suspend fun MediaKeySession.update(response: BufferSource)

The update() method of the MediaKeySession interface loads messages and licenses to the CDM, and then returns a Promise.