MediaKeys object

A set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.

Important  This object is not supported in Internet Explorer 11 on Windows 7.
 

Syntax


 keys = new MediaKeys(keySystem);  

DOM Information

Inheritance Hierarchy

The MediaKeys does not inherit from any class or interface.

Members

The MediaKeys object has these types of members:

Methods

The MediaKeys object has these methods.

MethodDescription
createSession

Initiates a new session with the key system.

isTypeSupported (MSMediaKeys)

Deprecated. Gets a value that indicates if the specified key system supports the specified media type.

setServerCertificate

A promise to a server certificate to be used to encrypt messages to the license server.

 

Properties

The MediaKeys object has these properties.

PropertyAccess typeDescription

keySystem

Read-only

Gets the name of the key system used to decrypt the media data.

 

Standards information

Remarks

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.

 

 

Show: