web api interface
MediaEncryptedEvent
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.
Constructor
MediaEncryptedEvent()- : Creates a new instance of a
MediaEncryptedEventobject.
- : Creates a new instance of a
Instance properties
This interface also inherits properties from its parent, Event.
initDataTypeRead only- : Returns a case-sensitive string with the type of the format of the initialization data found.
initDataRead only- : Returns an
ArrayBuffercontaining the initialization data found. If there is no initialization data associated with the format, it returnsnull.
- : Returns an
Instance methods
This interface doesn’t provide any specific methods, but inherits methods from its parent, Event.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.