Windows Dev Center

MediaStreamSource.BeginDrmSetupDecryptor Method (Byte[], Guid, Object)

Starts the process of creating a new decryptor.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

protected void BeginDrmSetupDecryptor(
	byte[] DrmKeyRotationData,
	Guid KeyId,
	Object userState
)

Parameters

DrmKeyRotationData
Type: System.Byte []
A byte array that contains the DRM license data needed to setup the decryptor. DrmKeyRotationData is optional. If it is not required, pass in null.
KeyId
Type: System.Guid
The KeyID of the decryptor to create.
userState
Type: System.Object
The user state that will be passed to the DrmSetupDecryptorCompleted event in the event arguments.

ExceptionCondition
ArgumentNullException

KeyId is Empty.

InvalidOperationException

The MediaStreamSource has not reached the MediaOpened state.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2015 Microsoft