Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DownloadTrackChanged Event

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 (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:
© 2015 Microsoft