Package-level declarations
Types
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.
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.
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.
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.
Properties
Functions
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.
The MediaKeySystemAccess.createMediaKeys()
method returns a ``js-nolint createMediaKeys() ``
None.
The generateRequest()
method of the MediaKeySession interface returns a Promise after generating a license request based on initialization data.
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.
The load()
method of the MediaKeySession interface returns a Promise that resolves to a boolean value after loading data for a specified session object.
The remove()
method of the MediaKeySession interface returns a Promise after removing any session data associated with the current object.
The setServerCertificate()
method of the MediaKeys interface provides a server certificate to be used to encrypt messages to the license server.
The update()
method of the MediaKeySession interface loads messages and licenses to the CDM, and then returns a Promise.