Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

MediaFailed Event

Occurs when there is an error associated with the media source.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
public event EventHandler<ExceptionRoutedEventArgs> MediaFailed

For more information, see Events (IIS Smooth Streaming).

The following example shows a delegate that handles the media failed event.

    void SmoothPlayer_MediaFailed(object sender, ExceptionRoutedEventArgs e)
    {
        MessageBox.Show(e.ErrorException.Message + " Inner Exception: "
            + e.ErrorException.InnerException);
    }

Silverlight

Supported in: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.