MediaChapterCollection Class
Represents a collection of MediaChapter objects.
Namespace: System.Web.UI.SilverlightControls
Assembly: System.Web.Silverlight (in System.Web.Silverlight.dll)
Syntax
'Declaration
Public Class MediaChapterCollection _
Inherits StateManagedCollection _
Implements IList(Of MediaChapter), ICollection(Of MediaChapter), _
IEnumerable(Of MediaChapter), IEnumerable
'Usage
Dim instance As MediaChapterCollection
public class MediaChapterCollection : StateManagedCollection,
IList<MediaChapter>, ICollection<MediaChapter>, IEnumerable<MediaChapter>,
IEnumerable
Examples
The following example demonstrates how to include a MediaChapterCollection within a MediaPlayer control.
<asp:MediaPlayer runat="server" ID="MediaPlayer1" ScaleMode="Stretch" AutoPlay="true"
MediaSource="../media/expressionstudio.wmv" Height="480" Width="640"
PluginBackground="Black" MediaSkinSource="../skins/Professional.xaml">
<Chapters>
<asp:MediaChapter ThumbnailSource="../media/MarkerThumb 00.00.00.jpg"
Position="0.0" Title="Chapter 1" />
<asp:MediaChapter ThumbnailSource="../media/MarkerThumb 00.00.10.jpg"
Position="10" Title="Chapter 2" />
<asp:MediaChapter ThumbnailSource="../media/MarkerThumb 00.00.24.jpg"
Position="24" Title="Chapter 3" />
</Chapters>
</asp:MediaPlayer>
<asp:MediaPlayer runat="server" ID="MediaPlayer1" ScaleMode="Stretch" AutoPlay="true"
MediaSource="../media/expressionstudio.wmv" Height="480" Width="640"
PluginBackground="Black" MediaSkinSource="../skins/Professional.xaml">
<Chapters>
<asp:MediaChapter ThumbnailSource="../media/MarkerThumb 00.00.00.jpg"
Position="0.0" Title="Chapter 1" />
<asp:MediaChapter ThumbnailSource="../media/MarkerThumb 00.00.10.jpg"
Position="10" Title="Chapter 2" />
<asp:MediaChapter ThumbnailSource="../media/MarkerThumb 00.00.24.jpg"
Position="24" Title="Chapter 3" />
</Chapters>
</asp:MediaPlayer>
Inheritance Hierarchy
System.Object
StateManagedCollection
System.Web.UI.SilverlightControls.MediaChapterCollection
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.