MediaKeySession: close() method

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

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

The close() method of the {{domxref('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. Then, it returns a {{jsxref('Promise')}}.

Syntax

js-nolint
close()

Parameters

None.

Return value

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}