Page 1 of 1
random music selection
Posted: 11 Jan 2007, 16:29
by demodisc
Hi!
I got 4 tracks in the music folder, but every time I load my gallery, it plays first track then second etc. Can Imagevue select randomly tracks to play?
Posted: 12 Jan 2007, 05:25
by globetrotter
Standard it is not possible in Imagevue. But there is a workaround for this:
pain wrote:To get mp3 tracks in random order every time just change in
readfolder.php
Line 25:
sort ($files);
to:
if ($ext=='mp3') shuffle($files); else sort ($files);
Posted: 28 Jan 2007, 14:37
by megastudio
globetrotter wrote:Standard it is not possible in Imagevue. But there is a workaround for this:
pain wrote:To get mp3 tracks in random order every time just change in
readfolder.php
Line 25:
sort ($files);
to:
if ($ext=='mp3') shuffle($files); else sort ($files);
Making this alteration it goes to function the Rodom Way? I tried and he did not give certain!
random mp3
Posted: 03 May 2007, 18:52
by lobster
really useful and neat, thanks
Posted: 09 Sep 2007, 15:03
by boomtastic
Just wanted to add my thanks for this!
Posted: 01 Nov 2007, 07:44
by ata
Thank you this tips work.
Have a question :
I want use on config.ini template
audiopath = image folder.
Then when theyre is nothing in folder he will take song into my mp3alt
And now i want the mp3alt be random (shuffle)
But I want keep my own song to my imagefolder them.
So with your trick it was random for all site and you lost the song of your imagefolder.
Can you say me if we can work on it and how to change please
Thank you