Export (0) Print
Expand All

MediaStreamSource.DrmSetupDecryptorCompleted Event

Silverlight

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.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft