DownloadTrackChanged Event

Occurs when the track selected for download differs from the previously selected track.

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

public:
 event EventHandler<TrackChangedEventArgs^>^ DownloadTrackChanged {
	void add (EventHandler<TrackChangedEventArgs^>^ value);
	void remove (EventHandler<TrackChangedEventArgs^>^ value);
}

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

The following example shows a delegate that handles the DownloadTrackChanged event.

  SmoothPlayer.DownloadTrackChanged += 
    new EventHandler<TrackChangedEventArgs>(SmoothPlayer_DownloadTrackChanged);

The following example shows how to display the information that can be obtained from the TrackChangedEventArgs object.

  void SmoothPlayer_DownloadTrackChanged(object sender, TrackChangedEventArgs e)
  {
      MessageBox.Show("StreamType: " + e.StreamType + " Timestamp: " +
         e.Timestamp + " Track: " + e.Track);
       }

Silverlight

Supported in: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0

Show: