Hi
@NogDog Thanks for the link. I have already checked it out. I was hoping to do it without using an embedded player. you know, dynamically, using JS as below:-
audio = new Audio(data);
audio.type = "audio/mpeg";
audio.play();
where data would be the sound object retrieved from $readfile(filename) from php. I have tried this using a $.post request. While I get the data ( sound file), the $.post being ajax and thus asynchronous, the program gets lost without errors and without any sound.
Sempervivum Thanks very much for chipping in. In your example I see that track1.mp3 is hard coded. If I use an event listener, how would I change the name of the next file to play? Basically the src = "" needs to be dynamic and I need to keep changing it. How would I achieve that ? Would you be kind enough to provide a small example?
Thanks loads !!