The Encrypted Media Extensions API provides interfaces for controlling the playback of content which is subject to a digital restrictions management scheme.
Encrypted Media Extensions API
Interfaces
-
MediaKeyMessageEvent
-
Contains the content and related data when the content decryption module (CDM) generates a message for the session.
-
MediaKeys
-
Represents a set of keys that an associated
HTMLMediaElement
can use for decryption of media data during playback. -
MediaKeySession
-
Represents a context for message exchange with a content decryption module (CDM).
-
MediaKeyStatusMap
-
Is a read-only map of media key statuses by key IDs.
-
MediaKeySystemAccess
-
Provides access to a Key System for decryption and/or a content protection provider.
Specifications
Specification | Status | Comment |
---|---|---|
Encrypted Media Extensions | Recommendation | Initial definition |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
Encrypted_Media_Extensions_API |
42
["The spec requires that the passed
supportedConfigurations option contain at least one of
audioCapabilities or
videoCapabilities , and that said parameters include a codec string.", "The function does not exist in insecure contexts. This was not enforced until Chrome 58."]
|
13
|
38
["Starting in Firefox 55, if neither
audioCapabilities nor
videoCapabilities is specified in
supportedConfigurations , a warning is output to the web console.", "In addition, starting in Firefox 55, if in
supportedConfigurations , either
audioCapabilities 's or
videoCapabilities 's
contentType value doesn't specify a
\"codecs\" substring to define allowed codecs within the media wrapper, a warning is output to the web console. See note below table for example and correction.", "In the future, if neither
audioCapabilities nor
videoCapabilities is specified in the
supportedConfigurations , a
NotSupported exception will be thrown."]
|
No
|
29
["The spec requires that the passed
supportedConfigurations option contain at least one of
audioCapabilities or
videoCapabilities , and that said parameters include a codec string.", "The function does not exist in insecure contexts. This was not enforced until Opera 45."]
|
13.1
|
43
["The spec requires that the passed
supportedConfigurations option contain at least one of
audioCapabilities or
videoCapabilities , and that said parameters include a codec string.", "The function does not exist in insecure contexts. This was not enforced until version 58."]
|
42
["The spec requires that the passed
supportedConfigurations option contain at least one of
audioCapabilities or
videoCapabilities , and that said parameters include a codec string.", "The function does not exist in insecure contexts. This was not enforced until Chrome 58."]
|
38
["Starting in Firefox 55, if neither
audioCapabilities nor
videoCapabilities is specified in
supportedConfigurations , a warning is output to the web console.", "In addition, starting in Firefox 55, if in
supportedConfigurations , either
audioCapabilities 's or
videoCapabilities 's
contentType value doesn't specify a
\"codecs\" substring to define allowed codecs within the media wrapper, a warning is output to the web console. See note below table for example and correction.", "In the future, if neither
audioCapabilities nor
videoCapabilities is specified in the
supportedConfigurations , a
NotSupported exception will be thrown."]
|
29
["The spec requires that the passed
supportedConfigurations option contain at least one of
audioCapabilities or
videoCapabilities , and that said parameters include a codec string.", "The function does not exist in insecure contexts. This was not enforced until Opera 45."]
|
13.4
|
4.0
["The spec requires that the passed
supportedConfigurations option contain at least one of
audioCapabilities or
videoCapabilities , and that said parameters include a codec string.", "The function does not exist in insecure contexts. This was not enforced until Samsung Internet 7.0."]
|
Navigator.requestMediaKeySystemAccess()
BCD tables only load in the browser
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Encrypted_Media_Extensions_API