After hours of looking and VLC setup and xpsf code, here is how to build a simple jukebox.
IE a list video clips which will play in either direct or random mode.
Note .xspf files play within Totem Video Player – however start/stop times not supported.
Two methods:-
Use VLC to create a play list.
It will be very crude, missing many features. but the file will show the rudiments of where stuff is.
(apologies for the layout of this within WordPress, still trying to figure out small text to
straighten out the listing.).
Modify the file along the following lines:-
<?xml version=”1.0″ encoding=”UTF-8″?>
<playlist xmlns=”http://xspf.org/ns/0/” xmlns:vlc=”http://www.videolan.org/vlc/playlist/ns/0/” version=”1″>
<title>Playlist</title>
<trackList>
<track>
<location>smb://serverstore/vol/Some/Directory/Weddings/Brian and Glenda Wedding.mkv</location>
<title> Glenda Falling over in the Flowers </title>
<duration>5940</duration>
<extension application=”http://www.videolan.org/vlc/playlist/0″>
<vlc:id>0</vlc:id>
<vlc:option>start-time=606</vlc:option>
<vlc:option>stop-time=825</vlc:option>
</extension>
</track>
<track>
<location>smb://serverstore/vol/Some/Directory/Weddings/Brian and Glenda Wedding.mkv</location>
<title> Gran Smoking Behind the Disco Stage </title>
<duration>5940</duration>
<extension application=”http://www.videolan.org/vlc/playlist/0″>
<vlc:id>1</vlc:id>
<vlc:option>start-time=175</vlc:option>
<vlc:option>stop-time=381</vlc:option>
</extension>
</track>
</tracklist>
<extension application=”http://www.videolan.org/vlc/playlist/0″>
<vlc:item tid=”0″/>
<vlc:item tid=”1″/>
</extension>
</playlist>
salient point to notice are:- video duration, start time, stop time (all in seconds). It is left as an exercise to the reader
how to add more tracks.
How to Play:-
In VLC – Open Tools -> Preferences. Bottom Left “Show Settings” Radio Button – Press “All”
A an option list is shown: Click on the “Playlist” line. Select items to taste – eg “Play Randomly Forever, Autostart”.
Save.
Then Exit and Restart VLC.
Open File:- Select the *.xpsf previously edited. Enjoy.