MediaKeyMessageEvent Class
The event of a message of a key session to the license server (message, https://w3c.github.io/encrypted-media/#mediakeymessageevent).
public sealed class MediaKeyMessageEvent : Event- Inheritance
EventMediaKeyMessageEvent
Constructors
| Name | Description |
|---|---|
| MediaKeyMessageEvent(string, MediaKeyMessageEventInit) | Creates an event. |
MediaKeyMessageEvent(string, MediaKeyMessageEventInit)
EncryptedMediaTypes.csCreates an event.
public MediaKeyMessageEvent(string type, MediaKeyMessageEventInit eventInitDict)Parameters
typestring- The type of the event.
eventInitDictMediaKeyMessageEventInit- The initialization dictionary, with the message.
See also
Properties
| Name | Description |
|---|---|
| Message | Gets the message (for Clear Key, a JSON object encoded in UTF-8). |
| MessageBuffer | Gets the ArrayBuffer of the message for the scripts: use MediaKeyMessageEvent.Message in .NET code. |
| MessageType | Gets the type of the message. |
Message
EncryptedMediaTypes.csGets the message (for Clear Key, a JSON object encoded in UTF-8).
public ReadOnlyMemory<byte> Message { get; }Property value
MessageBuffer
EncryptedMediaTypes.csGets the ArrayBuffer of the message for the scripts: use MediaKeyMessageEvent.Message in .NET code.
public object MessageBuffer { get; }MessageType
EncryptedMediaTypes.csGets the type of the message.
public MediaKeyMessageType MessageType { get; }