SmoothStreamingMediaElement.CurrentStateChanged Event

Occurs when the current state of media element changes.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)

public event RoutedEventHandler CurrentStateChanged

For more information, see Events.

The following examples shows a delegate that displays the new state using a text element.

    void SmoothPlayer_CurrentStateChanged(object sender, RoutedEventArgs e)
        OutputText.Text = (sender as SmoothStreamingMediaElement).CurrentState.ToString();


Supported in: 5

Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0