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)
Syntax
'Declaration
Public Event DownloadTrackChanged As EventHandler(Of TrackChangedEventArgs)
'Usage
Dim instance As SmoothStreamingMediaElement
Dim handler As EventHandler(Of TrackChangedEventArgs)
AddHandler instance.DownloadTrackChanged, handler
public event EventHandler<TrackChangedEventArgs> DownloadTrackChanged
public:
event EventHandler<TrackChangedEventArgs^>^ DownloadTrackChanged {
void add (EventHandler<TrackChangedEventArgs^>^ value);
void remove (EventHandler<TrackChangedEventArgs^>^ value);
}
member DownloadTrackChanged : <EventHandler<TrackChangedEventArgs>,
TrackChangedEventArgs>
JScript supports the use of events, but not the declaration of new ones.
Remarks
For more information, see Events.
Examples
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);
}
Version Information
Silverlight
Supported in: 5
Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0