We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

close()

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The MediaKeySession.close() method 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

mediaKeySession.close().then(function() { ... });

Return value

A Promise.

Specifications

Specification Status Comment
Encrypted Media Extensions
The definition of 'close()' in that specification.
Recommendation Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support4213 ? ? Yes ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support4342 Yes ? Yes ?4.0

Document Tags and Contributors

Contributors to this page: fscholz, libbymc, rolfedh, Sebastianz, jpmedley
Last updated by: fscholz,