I have three sound objects :
sound_a = new Audio("a.mp3");
sound_b = new Audio("b.mp3");
sound_c = new Audio("c.mp3");
I want to play the sound b when the sound a is finished. And play the sound c when the sound b is finish.
How I can do that ?
My code is the following :
sound_a.pause();
sound_a.currentTime = 0;
sound_a.play();
sound_b.pause();
sound_b.currentTime = 0;
sound_b.play();
sound_c.pause();
sound_c.currentTime = 0;
sound_c.play();