To continue dsdsdsdsd, answer a bit with the numbers for "the whole shebang"
NOTE. In my application, loc1 is a dummy that refers to the stored location of the song
// ... code before ... tune = new Audio(loc1); // First, create audio event using js // set up "song over' event listener & action tune.addEventListener('ended', function(){ tune.load(); //reload audio event (and reset currentTime!) tune.play(); //play audio event for subsequent 'ended' events },false); tune.play(); // plays it the first time thru // ... code after ...
I spent days and days trying to figure out what I'm doing wrong, but now everything is working fine ... at least on desktop browsers ...
source share