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 generateRequest()
method of the MediaKeySession interface returns a Promise after generating a license request based on initialization data.
The update()
method of the MediaKeySession interface loads messages and licenses to the CDM, and then returns a Promise.