BeginDrmSetupDecryptor Method (Byte[], Guid)
Collapse the table of content
Expand the table of content

MediaStreamSource.BeginDrmSetupDecryptor Method (Byte[], Guid)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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
)

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.

ExceptionCondition
ArgumentNullException

KeyId is Empty.

InvalidOperationException

The MediaStreamSource has not reached the MediaOpened state.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2018 Microsoft