We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

MediaKeyMessageEvent()

Non-standard
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.

Syntax

var mediaKeyMessageEvent = new MediaKeyMessageEvent(typeArg, options)

Parameters

typeArg
A DOMString containing one of May be one of license-requestlicense-renewallicense-renewal, or individualization-request.
options 
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.

Specifications

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

Browser Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support42 Yes ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No42 Yes ? ? ?4.0

Document Tags and Contributors

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