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

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

Specifications

Specification
Encrypted Media Extensions
# dom-mediaencryptedevent-initdata

Browser compatibility