Class MediaEncryptedEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The MediaEncryptedEvent interface of the Encrypted Media Extensions API contains the information associated with an HTMLMediaElementencrypted event sent to a HTMLMediaElement when some initialization data is encountered in the media.
[Value("MediaEncryptedEvent")]
public class MediaEncryptedEvent : Event
- Inheritance
-
MediaEncryptedEvent
- Inherited Members
Remarks
Constructors
MediaEncryptedEvent()
public MediaEncryptedEvent()
MediaEncryptedEvent(string, MediaEncryptedEventInit)
The MediaEncryptedEvent constructor creates a new MediaEncryptedEvent object.
public MediaEncryptedEvent(string type, MediaEncryptedEventInit eventInitDict = null)
Parameters
typestringeventInitDictMediaEncryptedEventInit
Remarks
NOTE
In normal cases, you don't need to call this constructor in your code as such events are usually generated by the browser when needed.
Properties
InitData
The read-only initData property of the MediaKeyMessageEvent returns the initialization data contained in this event, if any.
[Value("initData")]
public ArrayBuffer? InitData { get; }
Property Value
- ArrayBuffer
A ArrayBuffer with the initialization data, or
nullif there are none.
Remarks
InitDataType
The read-only initDataType property of the MediaKeyMessageEvent returns a case-sensitive string describing the type of the initialization data associated with this event.
[Value("initDataType")]
public string InitDataType { get; }
Property Value
- string
A string.