StreamInfo.ChunkList Property
Gets the list of chunks for this stream.
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
Syntax
'Declaration
Public ReadOnly Property ChunkList As IList(Of ChunkInfo)
Get
'Usage
Dim instance As StreamInfo
Dim value As IList(Of ChunkInfo)
value = instance.ChunkList
public IList<ChunkInfo> ChunkList { get; }
public:
property IList<ChunkInfo^>^ ChunkList {
IList<ChunkInfo^>^ get ();
}
member ChunkList : IList<ChunkInfo>
function get ChunkList () : IList<ChunkInfo>
Property Value
Type: System.Collections.Generic.IList<ChunkInfo>
An IList of ChunkInfo objects.
Examples
The following example uses the ChunkList property to get data chunks and call the BeginGetChunk(TimeSpan, AsyncCallback, Object) method. For more information, see see Timeline Markers and Events.
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