MC Media Player

The Playlist

The playlist appears as a directory in the top left of the player window.

The playlist is created with an external XML file. This is a fairly simple text file which contains information about each video. By default the file is called mcmp720x360_playlist.xml. If you want to change the name or location of this file you'll need to edit the playlist variable.

To customize your playlist, either open the mcmp720x360_playlist.xml file or create a new XML file.


Simple Menu

Simple Playlist

Let's say you want to create a very simple playlist with three video files like the one pictured right. Here is the XML file for this playlist:

<playlist>
   <file label="Clip 1" url="clip1.flv" />
   <file label="Clip 2" url="clip2.flv" />
   <file label="Clip 3" url="clip3.flv" />
</playlist>

The XML file is made up of "nodes", which consist of information contained within angle brackets (similar to HTML tags). The entire file is contained within the "playlist" node which begins with <playlist> and ends with </playlist>.

Individual items are created using "file" nodes, which always begin with <file  and can include the following attributes (examples will follow):

label   The title of the video clip (required).
url   The name/location of the FLV video file (required). This is relative to the player and can be in a different folder, e.g. ../folder3/clip5.flv.
desc   A short description, up to around 60-70 characters (optional).
info   Location of an info file to link with this video (optional). This is relative to the web page where the player is embedded.
kw   Comma-separated keywords to use with the search function.

To customize your playlist, create as many file nodes as you need and enter your own titles, file names, etc. The following example is a customized playlist which includes descriptions and info files:

<playlist>
   <file label="Family Holiday" url="holiday.flv" desc="Our trip to Italy" info="italy.swf" />
   <file label="Sara's Birthday" url="sara-bday.flv" desc="Sara's 5th birthday party" info="sara1.swf" />
   <file label="School Production" url="production.flv" desc="Tom appearing in the school play" info="school.swf" />
</playlist>

Duration & Resolution

There are two more variables you can use in the playlist: dur and res. They are only required in these instances:

dur   The duration in seconds, e.g. dur="130" means the clip is two minutes and ten seconds long.
res   The pixel resolution in the format "widthxheight", e.g: res=320x240.

More information and instructions can be found here.


Folders

Menu with FoldersIf you have a lot of video files you may want to arrange them in folders. Folders are nodes which begin with <folder> and end with </folder>. File nodes which appear between these tags are displayed inside the folder.

The example pictured right has two folders, each with two video clips. This is created by the following XML file:

<playlist>
   <folder label="Folder 1">
        <file label="Clip 1" url="clip1.flv" desc="This is the first clip" info="info1.swf" />
        <file label="Clip 2" url="clip2.flv" desc="This is the second clip" info="info2.swf" />
   </folder>
   <folder label="Folder 2">
        <file label="Clip 3" url="clip3.flv" desc="This is the third clip" info="info3.swf" />
        <file label="Clip 4" url="clip4.flv" desc="This is the fourth clip" info="info4.swf" />
   </folder>
</playlist>

Notice how the nodes are stacked, e.g. the first two video file nodes are placed inside the "Folder 1" node (between <folder label="Folder 1"> and </folder>.

Following this same pattern you can add as many folders and subfolders as you like. The following example uses three levels of folder:

<playlist>
<folder label="Folder 1"> <file label="Clip 1" url="clip1.flv" desc="This is the first clip in Folder 1" /> <file label="Clip 2" url="clip2.flv" desc="This is the second clip in Folder 1" /> </folder> <folder label="Folder 2" desc="This folder has two sub-folders"> <folder label="Folder 2A"> <file label="Clip 3" url="clip3.flv" desc="This is the first clip in folder 2A" /> <file label="Clip 4" url="clip4.flv" desc="This is the second clip in folder 2A" />
</folder> <folder label="Folder 2B"> <file label="Clip 5" url="clip5.flv" desc="This is the first clip in folder 2B" /> <file label="Clip 6" url="clip6.flv" desc="This is the second clip in folder 2B" />
</folder> </folder>
<file label="Clip 7" url="clip7.flv" desc="This clip is not in a folder" info="info1.swf" />
</playlist>

Notes:


Next Page: The Info Screen