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.


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


Specification Status Comment
Encrypted Media Extensions
The definition of 'onwaitingforkey' in that specification.
Recommendation Initial definition.

Browser Compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
onwaitingforkeyChrome Full support 55Edge Full support 79Firefox Full support YesIE No support NoOpera 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


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown