MediaKeySystemAccess

The MediaKeySystemAccess interface of the Encrypted Media Extensions API provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess() method. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard
open external val keySystem: String

The keySystem read-only property of the MediaKeySystemAccess interface returns a string identifying the key system being used.

Functions

Link copied to clipboard

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

Link copied to clipboard
open external fun createMediaKeysAsync(): Promise<MediaKeys>

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

Link copied to clipboard

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