Encrypted Media Extensions
The MediaEncryptedEvent interface of the Encrypted Media Extensions API contains the information associated with an HTMLMediaElement/encrypted_event event sent to a HTMLMediaElement when some initialization data is encountered in the media.
Constructor
- MediaEncryptedEvent.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.
- 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.
- : Returns an ArrayBuffer containing the initialization data found. If there is no initialization data associated with the format, it returns
Instance methods
This interface doesn't provide any specific methods, but inherits methods from its parent, Event.
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
