Firefox Tomorrow

web api instance method

MediaKeySession: close() method

View on MDN ↗

Secure context

The close() method of the 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 Promise.

Syntax

close()

Parameters

None.

Return value

A Promise.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.