Export (0) Print
Expand All
Expand Minimize

Attributes Property

Gets or sets the attributes dictionary.

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

public Dictionary<string, string> Attributes { get; set; }

Property Value

Type: System.Collections.Generic..::..Dictionary<(Of <(<'String, String>)>)>
A dictionary object that contains name/value pairs for the attributes.

The following example shows how to get attributes.

    if (streamInfo.Attributes["Name"] == "ClosedCaptions" ||
                            streamInfo.Attributes["Name"] == "MARKERS")
    {
        selectStreams.Add(streamInfo);
        segmentInfo.SelectStreamsAsync(selectStreams);

        foreach (TrackInfo trackInfo in streamInfo.SelectedTracks)
        {
            foreach (ChunkInfo chunk in streamInfo.ChunkList.ToList<ChunkInfo>())
            {
                IAsyncResult ar =
                    trackInfo.BeginGetChunk(
                    chunk.TimeStamp, new AsyncCallback(AddMarkers), streamInfo.UniqueId);
            }
        }
    }

Silverlight

Supported in: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0

Show:
© 2014 Microsoft