MediaStreamSource.DrmSetupDecryptorCompleted Event
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Occurs when the DrmSetupDecryptorCompleted event completes, regardless if the setup succeeded or failed, if the initial call to BeginDrmSetupDecryptor did not throw an exception.
Assembly: System.Windows (in System.Windows.dll)
This event is raised on the UI thread.
This event occurs when a call to BeginDrmSetupDecryptor has completed for the MediaStreamSource instance. If the initial call to BeginDrmSetupDecryptor throws an exception, this event will not be raised.
Each successful call to BeginDrmSetupDecryptor will result in one corresponding event, regardless of the success or failure of the setup. The exception to this rule is that there may not be a corresponding event if the source has been changed, for example SwitchMediaStreamAsync has been called, or the MediaStreamSource instance is in the process of being shut down.
The Error property on the AsyncCompletedEventArgs can be used to determine if the setup succeed or failed.