Class MediaKeySystemAccess
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
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 RequestMediaKeySystemAccess(string, List<MediaKeySystemConfiguration>) method.
[Value("MediaKeySystemAccess")]
public class MediaKeySystemAccess
- Inheritance
-
MediaKeySystemAccess
- Inherited Members
Remarks
Constructors
MediaKeySystemAccess()
public MediaKeySystemAccess()
Properties
KeySystem
The keySystem read-only property of the MediaKeySystemAccess interface returns a string identifying the key system being used.
[Value("keySystem")]
public string KeySystem { get; }
Property Value
- string
A string.
Remarks
This is the value that was passed to RequestMediaKeySystemAccess(string, List<MediaKeySystemConfiguration>) when system access is requested.
Methods
CreateMediaKeys()
The MediaKeySystemAccess.createMediaKeys() method returns a
{{jsxref('Promise')}} that resolves to a new 'MediaKeys' object.
[Value("createMediaKeys")]
public Task<MediaKeys> CreateMediaKeys()
Returns
Remarks
GetConfiguration()
The getConfiguration() method of the MediaKeySystemAccess interface returns an object with the supported combination of the following configuration options:
[Value("getConfiguration")]
public MediaKeySystemConfiguration GetConfiguration()
Returns
- MediaKeySystemConfiguration
An object.