I have a directory on my website with several mp3’s.
I dynamically create a list of them in the website using php.
I also have a drag and drop function associated to them and I can select a list of those mp3 to play.
Now, giving that list, how can I click on a button (Play) and make the website play the first mp3 of the list? (I also know where the music is on the website)
If you want a version that works for old browsers, I have made this library:
Documentation:
Soundtakes three arguments. Thesourceurl of the sound, thevolume(from0to100), and theloop(trueto loop,falsenot to loop).stopallow tostartafter (contrary toremove).initre-set the argument volume and loop.Example: