MediaEncryptedEvent

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2019.

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.

Event MediaEncryptedEvent

Constructor

MediaEncryptedEvent()

Creates a new instance of a MediaEncryptedEvent object.

Instance properties

This interface also inherits properties from its parent, Event.

MediaEncryptedEvent.initDataType Read only

Returns a case-sensitive string with the type of the format of the initialization data found.

MediaEncryptedEvent.initData Read only

Returns an ArrayBuffer containing the initialization data found. If there is no initialization data associated with the format, it returns null.

Instance methods

This interface doesn't provide any specific methods, but inherits methods from its parent, Event.

Specifications

Specification
Encrypted Media Extensions
# mediaencryptedevent

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
MediaEncryptedEvent
MediaEncryptedEvent() constructor
initData
initDataType

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support