Now that you have a new "video" content type and have uploaded your videos, the next step is to set up a View of your video content to act as the playlist. Lets begin by going to Administer >> Views.
This next step differs whether you are using Views 2 (for Drupal 6) or Views version 1 (for Drupal 5). I will separate how to do both of these in the sections below... please pick the implementation that fits your version.
Setting up the Views module in Drupal 5
Once you are in the Views administrator section, you will then want to create a new view by clicking on the link that says Add. After the new view page comes up, please follow the following links to add a new view for your videos...
- Under Name type videos
- Expand Page and click Provide a Page View
- Under View Type select Teaser List
- Go down and expand the Filters section.
- Under the Add new filter, you are going to select Node: Published and then click on the Add Filter button.
- Now do that again, but this time, select Node: Type.
- Once it adds the Node Type filter, you will want to then click on the "video"
- Now go down to the bottom and click on the button that says Save
Setting up the Views 2 module in Drupal 6
Once you are in the Views administrator section, you will then want to create a new view by clicking on the link that says Add. After the new view page comes up, please follow the following links to add a new view for your videos...
- Give your view a name.... for our case, it would be videos
- Give it a short description... don't worry about the View tag, and then go down and press the Next button.
- Now go over and press the + button next to the Filters section.
- You will see something pop-up in the bottom of the screen.... Under Groups select Node
- In the check-box, you will want to check Node: Type and then press the Add button.
- Then you will want to select your node type that you are using for videos in the checkboxes, and then press Update.
- Next, let's add a Field.... press the + next to the Field section.
- Under groups, select Node, and then check the Node: Title and then press Add button... then press Update button.
- You will then want to save your view by pressing the Save button below.
You can now use the parameter "playlist=videos" whenever you are embedding the video in your page... For example, this should now work...
<?php
$params['width'] = 652;
$params['height'] = 432;
$params['playlist'] = 'videos';
print dashplayer_get_player($params);
?>
If you do not know how to add this code to a page, then feel free to check out the next section...