Firefox Tomorrow

web api overview

Encrypted Media Extensions API

View on MDN ↗

Secure context

The Encrypted Media Extensions API provides interfaces for controlling the playback of content which is subject to a digital restrictions management scheme.

Access to this API is provided through requestMediaKeySystemAccess().

Interfaces

Extensions to other interfaces

The Encrypted Media Extensions API extends the following APIs, adding the listed features.

HTMLMediaElement

  • mediaKeys Read only
    • : Provides a MediaKeys object that represents the set of keys that the element can use for decryption of media data during playback.
  • setMediaKeys()
    • : Sets the MediaKeys that will be used to decrypt media during playback.
  • encrypted event
    • : Event that is fired on a HTMLMediaElement when initialization data is encountered in the media, indicating that it is encrypted.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.