MediaKeySystemAccess: createMediaKeys() method

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

The MediaKeySystemAccess.createMediaKeys() method returns a Promise that resolves to a new MediaKeys object.

Syntax

js
createMediaKeys()

Parameters

None.

Return value

Specifications

Specification
Encrypted Media Extensions
# dom-mediakeysystemaccess-createmediakeys

Browser compatibility

BCD tables only load in the browser