Hello friends,
I am creating a game based on html5 and JS, I want to play an audio clip for 8 seconds in the background in a loop, but when I add sound to the HTML code using:
<audio src="audio.mp3" autoplay loop></loop>
but still it plays the sound in one go.
can someone tell me how to do this?
source
share