Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2019.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The MediaKeyMessageEvent constructor creates a new MediaKeyMessageEvent object.
A string with the name of the event. It is case-sensitive and browsers always set it to message.
options OptionalAn object that, in addition of the properties defined in Event(), can have the following properties:
messageTypeA message type that allows applications to differentiate messages without parsing them. Allowed values are: license-request, license-renewal, license-renewal, or individualization-request.
messageAn array containing the message generated by the content decryption module.
A new MediaKeyMessageEvent object.
| Encrypted Media Extensions # dom-mediakeymessageevent-constructor |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jun 17, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.