HTMLMediaElement.onwaitingforkey

Experimental

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

The onwaitingforkey property of the HTMLMediaElement is an event handler, fired when a waitingforkey event  occurs, when playback is blocked while waiting for an encryption key.

This interface inherits from the ExtendableEvent interface.

Syntax

HTMLMediaElement.onwaitingforkey = function(waitingforkey) { ... }

Specifications

Specification
Encrypted Media Extensions
# dom-htmlmediaelement-onwaitingforkey

Browser compatibility

BCD tables only load in the browser