Quote Originally Posted by galnet
Quote Originally Posted by mersh
Hey thanks for this great script.

Is there a way to force it to always use the same number of videos? On my site, it sometimes picks one or two, sometimes none, any up to 10. I see in the readme file that the max number can be changed by changing the sql statement, but is there a way to force a minimum number of videos (assuming that many exist of course)?
You can remove the rand() quot from the line and this will always force 10 vids onto the player, however these will also be the first 10 vids within your database.
What if you were to dump the videos into an array, randomize that, then pull 10 vids out of the array? Would that take too long to execute each time?