SmoothStreamingMediaElement.Attributes Property
Gets or sets the attributes dictionary.
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
Syntax
'Declaration
Public Property Attributes As Dictionary(Of String, String)
Get
Set
'Usage
Dim instance As SmoothStreamingMediaElement
Dim value As Dictionary(Of String, String)
value = instance.Attributes
instance.Attributes = value
public Dictionary<string, string> Attributes { get; set; }
public:
property Dictionary<String^, String^>^ Attributes {
Dictionary<String^, String^>^ get ();
void set (Dictionary<String^, String^>^ value);
}
member Attributes : Dictionary<string, string> with get, set
function get Attributes () : Dictionary<String, String>
function set Attributes (value : Dictionary<String, String>)
Property Value
Type: System.Collections.Generic.Dictionary<String, String>
A dictionary object that contains name/value pairs for the attributes.
Examples
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);
}
}
}
Version Information
Silverlight
Supported in: 5
Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0