EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

MSMediaKeySession object

Represents a session with the Digital Rights Management (DRM) key system.

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

IE11

Syntax


var session = oMSKediaKeys.createSession(type, initData, cdmData);

DOM Information

Inheritance Hierarchy

The MSMediaKeySession does not inherit from any class or interface.

Members

The MSMediaKeySession object has these types of members:

Events

The MSMediaKeySession object has these events.

EventDescription
mskeyadded

Occurs after a call to update and a key has been added.

mskeyerror

Occurs when a there is an error in the key session.

mskeymessage

Occurs when a key message has been generated.

 

Methods

The MSMediaKeySession object has these methods.

MethodDescription
addEventListener

Registers an event handler for the specified event type.

close

Closes the media key session.

dispatchEvent

Sends an event to the current element.

removeEventListener

Removes an event handler that the addEventListener method registered.

update

Sends the key to the key system.

 

Properties

The MSMediaKeySession object has these properties.

PropertyAccess typeDescription

error (MSMediaKeySession)

Read-only

Gets the error state associated with the media key session.

keySystem

Read-only

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

sessionId

Read-only

Gets the identification string that identifies the media key session.

 

Remarks

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.

 

 

표시:
© 2014 Microsoft