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.
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.
MediaEncryptedEvent()
Creates a new instance of a MediaEncryptedEvent
object.
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
.
This interface doesn't provide any specific methods, but inherits methods from its parent, Event
.
Specification |
---|
Encrypted Media Extensions # mediaencryptedevent |
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