HTMLMediaElement.onencrypted

This is an experimental technology
Check 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
Unknown
The definition of 'onencrypted' in that specification.
Unknown Initial definition.

Browser Compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
onencryptedChrome Full support YesEdge Full support 13Firefox Full support YesIE ? Opera Full support YesSafari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown