SmoothStreamingMediaElement.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

For more information, see Events.

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: 5

Windows Phone

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