Page 1 of 1

Random File in Playlist.

Posted: 20 Dec 2011 00:36
by fanOfVLC
Hi,

I'm currently working on a home stream for around my house -- long story, but it'll stream through to my Roku boxes around the house like a channel -- and I am currently at a bit of a roadblock. It would seem as if the playlists are done via XML file and, unfortunately, I'm unsure of how I would go about editing the bit of code to play a random video each time it is called. For example:

It currently reads like this:

Code: Select all

<track> <location>file:///C:/Users/User/Videos/Dir/episode1.mp4</location> <title>episode1.mp4</title> <duration>37801</duration> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>0</vlc:id> </extension> </track>
I'd really like something like this:

Code: Select all

<track> <location>file:///C:/Users/User/Videos/Dir/randomEpisode</location> <title>randomEpisode</title> <duration>37801</duration> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>0</vlc:id> </extension> </track>
I'm not sure if it is possible but, if so how--and if not, how would I go about making playlists so that each day it doesn't play the same episodes as the previous day?

Thanks,
fanOfVLC.

Re: Random File in Playlist.

Posted: 20 Dec 2011 16:52
by VLC_help
You have to generate new playlist every time if you want the playlist to have new entries.