MediaKeyMessageEventInit Class

The initialization dictionary of a MediaKeyMessageEvent (https://w3c.github.io/encrypted-media/#dom-mediakeymessageeventinit).

public sealed class MediaKeyMessageEventInit : EventInit
Inheritance
EventInit MediaKeyMessageEventInit

Constructors

NameDescription
MediaKeyMessageEventInit()

MediaKeyMessageEventInit()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public MediaKeyMessageEventInit()

No documentation is available.

Properties

NameDescription
MessageGets the message.
MessageTypeGets the type of the message.

Gets the message.

public required ReadOnlyMemory<byte> Message { get; init; }

Gets the type of the message.

public required MediaKeyMessageType MessageType { get; init; }