Encrypted Media Extensions
The encrypted event is fired when initialization data is found in the media that indicates it is encrypted.
This event is not cancelable and does not bubble.
Syntax
Use the event name in EventTarget/addEventListener:
addEventListener("encrypted", (event) => { })
Alternatively, assign to the event handler property of the interface:
onencrypted = (event) => { }
Event type
A MediaEncryptedEvent. Inherits from Event.
MediaEncryptedEvent
Specifications
Browser compatibility
See also
- HTMLAudioElement
- HTMLVideoElement
- audio
- video
- MediaEncryptedEvent
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
