This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2019.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The get() method of the MediaKeyStatusMap interface returns the status value associated with the given key, or undefined if there is none.
The status value indicates whether or not the specific key can be used for decryption.
get(key)
keyThe key whose value you want returned.
A string specifying the status value associated with the given key, or undefined.
The following status values are allowed:
usableThe key is currently usable for decryption.
expiredThe key is no longer usable for decryption because its expiration time has passed.
releasedThe key has been released and is no longer available to the CDM. However information about the key is available, such as a record of license destruction.
output-restrictedThere are output restrictions associated with the key based on the specified policy. Media data decrypted with this key may be blocked from presentation. The status indicates that the connection between the source and output (for example, your computer and an external display), is not trusted. This might indicate that there are HDCP version mismatches between the source, intermediate devices, and output, or that intermediate connecting devices such as HDMI cables or video splitters are damaged or non-compliant. An application might opt to use a higher HDCP version, content that does not require such a high version. You should also check that intermediate devices and cables support HDCP, are connected firmly, and are not damaged.
output-downscaledThere are output restrictions associated with the key based on the specified policy, however these restrictions might be relaxed if the content is played at a lower quality. If this value is returned an application might play the content at a lower resolution, or it could choose to use a higher HDCP version, or use other content that does not require such a high HDCP version.
usable-in-futureThe key will become usable for decryption in future, once its start time is reached.
status-pendingThe status of the key is not yet known and is being determined.
internal-errorThe key is not currently usable for decryption because of an error in the CDM. The application can't do anything to handle this case.
| Specification |
|---|
| Encrypted Media Extensions> # dom-mediakeystatusmap-get> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
get |
42 | 13 | 45 | 29 | 12.1 | 42 | 45 | 29 | 12.2 | 4.0 | 43 | 12.2 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get