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

BCD tables only load in the browser