Represents a session with the Digital Rights Management (DRM) key system.
Important This object is not supported in Internet Explorer 11 on Windows 7.
var session = oMSKediaKeys.createSession(type, initData, cdmData);
Inheritance HierarchyThe MSMediaKeySession does not inherit from any class or interface.
The MSMediaKeySession object has these types of members:
The MSMediaKeySession object has these events.
Occurs after a call to update and a key has been added.
Occurs when a there is an error in the key session.
Occurs when a key message has been generated.
The MSMediaKeySession object has these methods.
Registers an event handler for the specified event type.
Closes the media key session.
Sends an event to the current element.
Removes an event handler that the addEventListener method registered.
Sends the key to the key system.
The MSMediaKeySession object has these properties.
Gets the error state associated with the media key session.
Gets the name of the key system used to decrypt the media data.
Gets the identification string that identifies the media key session.
MSMediaKeySession is part of the World Wide Web Consortium (W3C) Encrypted Media Extensions (EME) which enables playback of protected content.
An application can potentially have multiple sessions activate with the key system.