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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support55 ? ? ?42 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support4355 Yes ?42 ?6.0

Document Tags and Contributors

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