Compartir a través de


MediaStreamSource.DrmSetupDecryptorCompleted Event

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Protected Event DrmSetupDecryptorCompleted As EventHandler(Of DrmSetupDecryptorCompletedEventArgs)
protected event EventHandler<DrmSetupDecryptorCompletedEventArgs> DrmSetupDecryptorCompleted

Remarks

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.

Version Information

Silverlight

Supported in: 5

Platforms

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