Answers for "html5 audio loop"

2

how to loop audio in js

myAudio = new Audio('someSound.ogg'); 
if (typeof myAudio.loop == 'boolean')
{
    myAudio.loop = true;
}
else
{
    myAudio.addEventListener('ended', function() {
        this.currentTime = 0;
        this.play();
    }, false);
}
myAudio.play();
Posted by: Guest on May-16-2020
1

loop an audio javascript

myAudio.loop = true;
Posted by: Guest on August-05-2021
0

html5 audio tag autoplay loop

<audio controls loop autoplay height="" width="">
      <source src="movie.mp3" type="audio/mp3" />
    </audio>
Posted by: Guest on October-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language