HTMLMediaElement.onwaitingforkey

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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
onwaitingforkeyChrome Full support 55Edge Full support 79Firefox Full support YesIE ? Opera Full support 42Safari ? WebView Android Full support 55Chrome Android Full support 55Firefox Android ? Opera Android Full support 42Safari iOS ? Samsung Internet Android Full support 6.0

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown