MediaEncryptedEvent: initData property

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 read-only initData property of the MediaKeyMessageEvent returns the initialization data contained in this event, if any.

Value

A ArrayBuffer with the initialization data, or null if there are none.

Specifications

Specification
Encrypted Media Extensions
# dom-mediaencryptedevent-initdata

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
initData