Click to See Complete Forum and Search --> : Random Video Playlist Script


mon
12-03-2006, 07:48 PM
Hi! I have searched all over the internet to find a way of randomly playing video playlists I have on my website without success. I created a wpl playlist that works fine by playing the videos in the order they were created. It is however boring for the visitors to watch the same playlist every time they visit my site. I tried to find a script that randomises the videos in the playlist without success. I then shuffled the playlists and created various versions of the playlist and numbered them. Now I am trying to find a way, be it by script or otherwise, to get a random playlist to play every time a visitor refreshes. I would appreciate any help offered. Thanks in advance.
Mon. :confused:

_Aerospace_Eng_
12-03-2006, 08:09 PM
This script isn't easy to write which is probably why you haven't found many out on the web. Would you be willing to pay for such script?

mon
12-04-2006, 07:44 PM
Thanks for replying. I didn't know that it is complicated. I have been to several internet streaming stations and they seem to be using the same system. That is why I thought that the script is somewhere to be found. I am currently not in a position to pay for the script as I am a student and I do not charge visitors for viewing the content on my site. Thanks though.
Mon.

mon
12-08-2006, 01:37 PM
Hi!
I found a script that does the job. For those interested, it is called urlrotator and can be found at http://www.starsol.co.uk. It reads:
<?php
$version = "v1.01";

$linksfile ="urlrotator.txt";

$urls = file("$linksfile");
$url = rand(0, sizeof($urls)-1);

$goto = "$urls[$url]";

header("Location: $goto");

?>

There is a text file that goes with the download where the urls are listed.

madebymarco
08-11-2007, 03:05 AM
i tried posting this script on my page but does nothing
can someone help me here

i need to run this feature on my site badly

thanks!