This topic has not yet been rated - Rate this topic

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

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

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

Silverlight

Supported in: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.