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.
On this page
MediaEncryptedEvent
Constructor
-
MediaEncryptedEvent() -
Creates a new instance of a
MediaEncryptedEventobject.
Instance properties
This interface also inherits properties from its parent, Event.
MediaEncryptedEvent.initDataTypeRead only-
Returns a case-sensitive string with the type of the format of the initialization data found.
MediaEncryptedEvent.initDataRead only-
Returns an
ArrayBuffercontaining the initialization data found. If there is no initialization data associated with the format, it returnsnull.
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
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
MediaEncryptedEvent |
42 | 13 | 38 | No | 29 | 12.1 | 43 | 42 | 38 | 29 | 12.2 | 4.0 |
MediaEncryptedEvent |
42 | 13 | 38 | No | 29 | 12.1 | 43 | 42 | 38 | 29 | 12.2 | 4.0 |
initData |
42 | 13 | 38 | No | 29 | 12.1 | 43 | 42 | 38 | 29 | 12.2 | 4.0 |
initDataType |
42 | 13 | 38 | No | 29 | 12.1 | 43 | 42 | 38 | 29 | 12.2 | 4.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent