Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SmoothStreamingMediaElement.PlaybackTrackChanged Event

Occurs when the currently playing track changes.

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


public event EventHandler<TrackChangedEventArgs> PlaybackTrackChanged

For more information, see Select and Monitor Bitrate and Events.

Bit-rate changes invoke the PlaybackTrackChanged event. Applications can monitor the bitrate in the delegate that handles the event. The following example shows how to read the new bitrate from the TrackChangedEventArgs parameter and display it using a text block.

    void SmoothPlayer_PlaybackTrackChanged(object sender, TrackChangedEventArgs e)
    {
        OutputText.Text = "Current bitrate: " + e.Track.Bitrate.ToString();
    }

Silverlight

Supported in: 5

Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Show:
© 2015 Microsoft