ComponentOne MediaPlayer for WPF and Silverlight
Step 2 of 3: Adding Content to the C1MediaPlayer Control
WPF Quick Start > Step 2 of 3: Adding Content to the C1MediaPlayer Control

In this section of the quick start tutorial, you will add a video with one chapter to the C1MediaPlayer control.

Complete the following steps:

  1. In the Properties window, click the Items ellipsis button Ellipsis.png. The Collection Editor: Items dialog box appears.
  2. Click Add to add a C1MediaItem itemto the C1MediaPlayer control.
  3. In the Properties grid, set the following properties:
  4. Set the C1MediaItem.MediaSource property to "http://download.componentone.com/pub/Videos/Trevor%20Does%20Silverlight.wmv". This sets the URL of the media source.
  5. Set the C1MediaItem.Title property to "Trevor Does Silverlight". This specifies the title of the media.
  6. Set the C1MediaItem.NaturalDuration property to"00:28:15". This sets the duration stamp to 28 minutes and 15 seconds.
  7. Click the C1MediaItem.Chapters ellipsis button Ellipsis.png to open the CollectionEditors:Chapters dialog box.
  8. Click Add to add a C1MediaChapter item to the C1MediaItem item.
  9. In the Properties grid, specify the position that the chapter begins at by setting the C1MediaChapter.Position property to "00:02:48".
  10. 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.