MediaStreamSource.BeginDrmSetupDecryptor Method (Byte[], Guid, Object)
[ 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.
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | KeyId is Empty. |
| InvalidOperationException | The MediaStreamSource has not reached the MediaOpened state. |
Show: