Back to Content

MediaKeySession: closed property

files/en-us/web/api/mediakeysession/closed/index.md

latest521 B
Original Source

{{APIRef("Encrypted Media Extensions")}}{{SecureContext_Header}}

The closed read-only property of the {{domxref('MediaKeySession')}} interface returns a {{jsxref('Promise')}} signaling when a {{domxref('MediaKeySession')}} closes. This promise can only be fulfilled and is never rejected. Closing a session means that licenses and keys associated with it are no longer valid for decrypting media data.

Value

A {{jsxref("Promise")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}