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

July 28, 2014

Starts the process of creating a new decryptor.

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

'Declaration
Protected Sub BeginDrmSetupDecryptor ( _
	DrmKeyRotationData As Byte(), _
	KeyId As Guid, _
	userState As Object _
)

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 Nothing.
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:
© 2014 Microsoft