MediaKeyStatusMap: get() method

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The get property of the MediaKeyStatusMap interface returns the value associated with the given key, or undefined if there is none.

Syntax

js
get(key)

Parameters

key

The key whose value you want returned.

Return value

The value associated with the given key, or undefined.

Specifications

Specification
Encrypted Media Extensions
# dom-mediakeystatusmap-get

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
get