DrmSetupDecryptorCompleted Event
Collapse the table of content
Expand the table of content

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.

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

protected event EventHandler<DrmSetupDecryptorCompletedEventArgs> DrmSetupDecryptorCompleted

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.

Windows Phone OS

Supported in: 8.1, 8.0

© 2016 Microsoft