In this section of the quick start tutorial, you will add a video with one chapter to the C1MediaPlayer control.
Complete the following steps:
- In the Properties window, click the Items ellipsis button . The Collection Editor: Items dialog box appears.
- Click Add to add a C1MediaItem itemto the C1MediaPlayer control.
- In the Properties grid, set the following properties:
- Set the C1MediaItem.MediaSource property to "http://download.componentone.com/pub/Videos/Trevor%20Does%20Silverlight.wmv". This sets the URL of the media source.
- Set the C1MediaItem.Title property to "Trevor Does Silverlight". This specifies the title of the media.
- Set the C1MediaItem.NaturalDuration property to"00:28:15". This sets the duration stamp to 28 minutes and 15 seconds.
- Click the C1MediaItem.Chapters ellipsis button to open the CollectionEditors:Chapters dialog box.
- Click Add to add a C1MediaChapter item to the C1MediaItem item.
- In the Properties grid, specify the position that the chapter begins at by setting the C1MediaChapter.Position property to "00:02:48".
- In the Properties grid, create a title for your chapter setting the Title property to "Setting Up a Development System".
You have successfully added a video with one chapter to the C1MediaPlayer control. In the next step, you will run the project and observe several functions of the C1MediaPlayer control.