Playlist
Creation Guide V1.0
Alluvium uses a standard RSS file format. The requirements
are pretty straight forward, here is an example of the file
format:
<?xml version="1.0"?>
<rdf:RDF
xmlns="http://purl.org/rss/1.0/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ev="http://purl.org/rss/1.0/modules/event/"
xmlns:mm="http://musicbrainz.org/mm/mm-2.0#"
>
<channel rdf:about="http://tristero.sf.net/alluvium/">
<title>BlackBox TV Station</title>
<link>http://www.actlab.tv</link>
<description>
Blackbox TV Station, 2005
</description>
<image rdf:resource="http://tristero.sf.net/alluvium/headphones.jpg"/>
<item>
<
link>http://www.blackbox.jtlopez.com/blackbox_TV/video/Trailer_DV_DSL.mov</link>
<
mm:duration>188600</mm:duration>
< /item>
<item>
<
link>http://www.blackbox.jtlopez.com/blackbox_TV/video/DayNTime_Short.mov</link>
<
mm:duration>183400</mm:duration>
< /item>
<item>
<
link>http://www.blackbox.jtlopez.com/blackbox_TV/video/crazy_moments.mov</link>
<
mm:duration>202600</mm:duration>
< /item>
<item>
<
link>http://www.blackbox.jtlopez.com/blackbox_TV/video/Video_Mix_Final_Output_2_5_2005_with_bars.mov</link>
<
mm:duration>95966</mm:duration>
< /item>
</channel>
< /rdf:RDF>
As
you can see from the code, each file is an “item”,
where the “link” refers to the file location
and “duration” refers to the length of the audio/video
file in milliseconds.
There are many ways to automate the rss file creation, it
really depends on how you will be storing your media. If
you already have a database for your videos, you can implement
a script that can dynamically create playlists. You can also
just store your files in a folder that a script dynamically
scans and builds a RSS playlist.
As
you can see from the example, the RSS format does accept
URL’s as sources, giving you
a flexibility when deciding where to store your video files.
Your
last option, which is not recommend, but is possible, is
to create your playlist manually, by
adding an “item” one
by one.