A set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
keys = new MediaKeys(keySystem);
Inheritance HierarchyThe MediaKeys does not inherit from any class or interface.
The MediaKeys object has these types of members:
The MediaKeys object has these methods.
Initiates a new session with the key system.
Deprecated. Gets a value that indicates if the specified key system supports the specified media type.
A promise to a server certificate to be used to encrypt messages to the license server.
The MediaKeys object has these properties.
Gets the name of the key system used to decrypt the media data.
As of Microsoft Edge, the unprefixed version of MediaKeys is supported. MSMediaKeys is still supported in IE11. For more information on EME implementation updates in Microsoft Edge, see Encrypted Media Extensions updates.