Web/API/MediaKeySession/onmessage

From Get docs

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


The onmessage property of the MediaKeySession is an event handler, fired whenever a MediaKeyMessageEvent occurs, 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
Encrypted Media ExtensionsThe definition of 'onmessage' in that specification. Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

onmessage

Experimental'

Chrome

Full support 55

Edge

Full support 79

Firefox

Full support Yes

IE

No support No

Opera

Full support 42

Safari

?

WebView Android

Full support 43

Chrome Android

Full support 55

Firefox Android

Full support Yes

Opera Android

Full support 42

Safari iOS

?

Samsung Internet Android

Full support 6.0

Legend

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