Web/API/HTMLMediaElement/onencrypted

From Get docs

This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.


The onencrypted property of the HTMLMediaElement is an event handler, fired whenever an encrypted event occurs, denoting the media is encrypted.

This interface inherits from the ExtendableEvent interface.

Syntax

HTMLMediaElement.onencrypted = function(encrypted) { ... }

Specifications

Specification Status Comment
Encrypted Media ExtensionsThe definition of 'onencrypted' in that specification. Recommendation Initial definition.

Browser Compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
onencrypted Chrome

Full support Yes

Edge

Full support 13

Firefox

Full support Yes

IE

No support No

Opera

Full support Yes

Safari

?

WebView Android

?

Chrome Android

?

Firefox Android

?

Opera Android

?

Safari iOS

?

Samsung Internet Android

?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown