loop an audio javascript
myAudio.loop = true;
javascript loop audio list
let audio = new Audio();
var playlist = this.state.sequence; // load the sequence of sounds
audio.src = playlist[0].src; // set the source of the first file in my array
audio.play();
// when the song ends, load the new sound
audio.addEventListener('ended', function(){
// increment playlist[i].src
}, true);
audio.loop = false;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us