MediaKeySession.onmessage

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.

Syntax

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

Specifications

Specification Status Comment
Unknown
The definition of 'onmessage' in that specification.
Unknown Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic support
Experimental
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

Legend

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,