GO-V.ORG
As seen in

MediaEncryptedEvent

Encrypted Media Extensions

Encrypted Media Extensions

The **`MediaEncryptedEvent`** interface of the [Encrypted Media Extensions API](/docs/Web/API/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.

## Constructor

- MediaEncryptedEvent()
- : Creates a new instance of a `MediaEncryptedEvent` object.

## Instance properties

_This interface also inherits properties from its parent, Event._

- MediaEncryptedEvent.initDataType
- : Returns a case-sensitive string with the _type_ of the format of the initialization data found.
- MediaEncryptedEvent.initData
- : 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

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"MediaEncryptedEvent". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·