MediaKeySystemAccess: getConfiguration() method

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

The getConfiguration() method of the MediaKeySystemAccess interface returns an object with the supported combination of the following configuration options:

initDataTypes Read only

Returns a list of supported initialization data type names. An initialization data type is a string indicating the format of the initialization data.

audioCapabilities Read only

Returns a list of supported audio type and capability pairs.

videoCapabilities Read only

Returns a list of supported video type and capability pairs.

distinctiveIdentifier Read only

Indicates whether a persistent distinctive identifier is required.

persistentState Read only

Indicates whether the ability to persist state is required.

Syntax

js
getConfiguration()

Parameters

None.

Return value

An object.

Specifications

Specification
Encrypted Media Extensions
# dom-mediakeysystemaccess-getconfiguration

Browser compatibility

BCD tables only load in the browser