SelectedTracks Property

Gets or sets the SelectedTracks property.

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

public IList<TrackInfo> SelectedTracks { get; }

Property Value

Type: System.Collections.Generic..::..IList<(Of <(<'TrackInfo>)>)>
A generic list of TrackInfo objects.

For more information and an example that parses StreamInfo objects, see Timeline Markers and Events (IIS Smooth Streaming) under the heading "Extract Timeline Events and Assign Markers."

The following example shows how to select tracks from SegmentInfo and StreamInfo objects.

    void SmoothPlayer_ManifestReady(object sender, EventArgs e)
        if (!PremiumAccount)
            foreach (SegmentInfo segment in SmoothPlayer.ManifestInfo.Segments)
                IList<StreamInfo> streamInfoList = segment.AvailableStreams;
                foreach (StreamInfo stream in streamInfoList)
                    if (stream.Type == MediaStreamType.Video)
                        // Limit bit-rate to 866000.
                        ulong highRate = 866000 + 1;
                        List<TrackInfo> tracks = new List<TrackInfo>();

                        tracks = stream.AvailableTracks.ToList<TrackInfo>();
                        IList<TrackInfo> allowedTracks = tracks.Where((ti) => ti.Bitrate < highRate).ToList();
                        stream.SelectTracks(allowedTracks, false);


Supported in: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0