Class MediaKeyStatusMap
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The MediaKeyStatusMap interface of the Encrypted Media Extensions API is a read-only map of media key statuses by key IDs.
[Value("MediaKeyStatusMap")]
public class MediaKeyStatusMap
- Inheritance
-
MediaKeyStatusMap
- Inherited Members
Remarks
Constructors
MediaKeyStatusMap()
public MediaKeyStatusMap()
Properties
this[int]
public Union224 this[int i] { get; set; }
Parameters
iint
Property Value
Size
The size read-only property of
the MediaKeyStatusMap interface returns the number of key/value paIrs
in the status map.
[Value("size")]
public ulong Size { get; }
Property Value
- ulong
A long integer.
Remarks
Methods
Get(Union224)
The get() method of the MediaKeyStatusMap interface returns the status value associated with the given key, or undefined if there is none.
[Value("get")]
public Union36 Get(Union224 keyId)
Parameters
keyIdUnion224
Returns
- Union36
A string specifying the status value associated with the given key, or
undefined.The following status values are allowed:
Remarks
The status value indicates whether or not the specific key can be used for decryption.
Has(Union224)
The has() method of the
MediaKeyStatusMap interface returns a {{jsxref('Boolean')}}, asserting
whether a value has been associated with the given key.
[Value("has")]
public bool Has(Union224 keyId)
Parameters
keyIdUnion224
Returns
- bool
A 'Boolean'.