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 encrypted 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
external val bubbles: Boolean
Link copied to clipboard
external val cancelable: Boolean
Link copied to clipboard
external val composed: Boolean
Link copied to clipboard
external val currentTarget: EventTarget?
Link copied to clipboard
Link copied to clipboard
external val eventPhase: EventPhase
Link copied to clipboard
external val initData: ArrayBuffer?

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

Link copied to clipboard
external val initDataType: String

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
external val isTrusted: Boolean
Link copied to clipboard
external val target: EventTarget?
Link copied to clipboard
Link copied to clipboard
open external override val type: EventType<MediaEncryptedEvent>

Functions

Link copied to clipboard
Link copied to clipboard
external fun preventDefault()
Link copied to clipboard
Link copied to clipboard
external fun stopPropagation()