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

The onmessage property of the MediaKeySession is an event handler, fired whenever a MediaKeyMessageEvent ocurrs, denoting a message is generated by the content decryption module.

This interface inherits from the ExtendableEvent interface.


MediaKeySession.onmessage = function(MediaKeyMessageEvent) { ... }


Specification Status Comment
The definition of 'onmessage' 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
Basic support
Chrome Full support 55Edge ? Firefox ? IE ? Opera Full support 42Safari ? WebView Android Full support 43Chrome Android Full support 55Edge Mobile Full support YesFirefox Android ? Opera Android Full support 42Safari iOS ? Samsung Internet Android Full support 6.0


Full support  
Full support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

Document Tags and Contributors

Contributors to this page: connorshea, david_ross, jpmedley
Last updated by: connorshea,