W3cubDocs

/Web APIs

MediaKeySystemAccess: getConfiguration() method

The MediaKeySystemAccess.getConfiguration() method 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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
getConfiguration 42 13
43Before Firefox 50, the returned object has neither a distinctiveIdentifier nor a persistentState property.
No 29 12.1 43 42
43Before Firefox 50, the returned object has neither a distinctiveIdentifier nor a persistentState property.
29 12.2 4.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/getConfiguration