Random File in Playlist.

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
fanOfVLC
New Cone
New Cone
Posts: 3
Joined: 20 Dec 2011 00:30

Random File in Playlist.

Postby fanOfVLC » 20 Dec 2011 00:36

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.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Random File in Playlist.

Postby VLC_help » 20 Dec 2011 16:52

You have to generate new playlist every time if you want the playlist to have new entries.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 28 guests