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

Browser compatibility

BCD tables only load in the browser