MediaKeySession: closed property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{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}}