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
Encrypted Media Extensions
# dom-htmlmediaelement-onencrypted

Browser compatibility

BCD tables only load in the browser