MDN’s new design is in Beta! A sneak peek:


This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The MediaKeyMessageEvent constructor creates a new MediaKeyMessageEvent object which creates a new instance of MediaKeyMessageEvent.


var mediaKeyMessageEvent = new MediaKeyMessageEvent(typeArg, options)


A DOMString containing one of May be one of license-requestlicense-renewallicense-renewal, or individualization-request.
Options are as follows:
  • messageType: A developer-defined message type that allows applications to differentiate messages without parsing them.
  • message: An array containing the message generated by the content decryption module.


Specification Status Comment
Encrypted Media Extensions
The definition of 'MediaKeyMessageEvent' in that specification.
Working Draft Initial definition.

Browser Compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes)[1] ? ? ?
Feature Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support (Yes)[1] (Yes)[1] ? ? ? ?

[1] Before Chrome 56, the options parameter was optional.

Document Tags and Contributors

 Contributors to this page: bunnybooboo, jpmedley
 Last updated by: bunnybooboo,