MediaKeySession
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.
Properties
The closed
read-only property of the MediaKeySession interface returns a Promise signaling when a MediaKeySession closes.
The expiration
read-only property of the MediaKeySession interface returns the time after which the keys in the current session can no longer be used to decrypt media data, or NaN if no such time exists.
The keyStatuses
read-only property of the MediaKeySession interface returns a reference to a read-only MediaKeyStatusMap of the current session's keys and their statuses.
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 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 generateRequest()
method of the MediaKeySession interface returns a Promise after generating a license request based on initialization data.
The generateRequest()
method of the MediaKeySession interface returns a Promise after generating a license request based on initialization data.
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 remove()
method of the MediaKeySession interface returns a Promise after removing any session data associated with the current object.
The update()
method of the MediaKeySession interface loads messages and licenses to the CDM, and then returns a Promise.
The update()
method of the MediaKeySession interface loads messages and licenses to the CDM, and then returns a Promise.