HTMLMediaElement.onencrypted

Experimental

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
Encrypted Media Extensions
The definition of 'onencrypted' in that specification.
Recommendation Initial definition.

Browser compatibility

BCD tables only load in the browser