PlaybackTrackChanged Event
IIS 7.0
Occurs when the currently playing track changes.
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
For more information, see Select and Monitor Bit Rate (IIS Smooth Streaming) and Events (IIS Smooth Streaming).
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();
}
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.