Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
This represents a media key session.

Extends

Properties

closed

readonly closed: Promise<void> Signals when the object becomes closed as a result of the Session Closed algorithm being run. For more information, see https://www.w3.org/TR/encrypted-media/#dom-mediakeysession-closed.

expiration

readonly expiration: number The expiration time for all key(s) in the session, or NaN if no such time exists or if the license explicitly never expires, as determined by the CDM. For more information, see https://www.w3.org/TR/encrypted-media/#dom-mediakeysession-expiration.
Last modified on February 25, 2026