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
The definition of 'onwaitingforkey' in that specification.
Unknown Initial definition.

Browser Compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
onwaitingforkeyChrome Full support 55Edge No support NoFirefox ? IE ? Opera Full support 42Safari ? WebView Android Full support 55Chrome Android Full support 55Edge Mobile No support NoFirefox Android ? Opera Android Full support 42Safari iOS ? Samsung Internet Android ?


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

Document Tags and Contributors

Contributors to this page: mdnwebdocs-bot, fscholz, david_ross, jpmedley
Last updated by: mdnwebdocs-bot,