MediaEncryptedEvent

open class MediaEncryptedEvent(val type: EventType<MediaEncryptedEvent>, init: MediaEncryptedEventInit = definedExternally) : Event(source)

The MediaEncryptedEvent interface of the Encrypted Media Extensions API contains the information associated with an HTMLMediaElement/encrypted_event event sent to a HTMLMediaElement when some initialization data is encountered in the media.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<MediaEncryptedEvent>, init: MediaEncryptedEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The read-only initData property of the MediaKeyMessageEvent returns the initialization data contained in this event, if any.

Link copied to clipboard

The read-only initDataType property of the MediaKeyMessageEvent returns a case-sensitive string describing the type of the initialization data associated with this event.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val type: EventType<MediaEncryptedEvent>

Functions

Link copied to clipboard
open override fun asInit(): MediaEncryptedEventInit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard