0

I am trying to loop the sound file and am having trouble finding a solution.

<embed class="audio" src="D:\Sublime Text 3\first\Clock-ringing.mp3">
Filippo Costa
  • 488
  • 7
  • 25

3 Answers3

0

Use the audio tag:

 <audio autoplay loop>
   <source src="D:\Sublime Text 3\first\Clock-ringing.mp3" type="audio/mpeg">
 </audio> 
Filippo Costa
  • 488
  • 7
  • 25
0

you can also use:

<embed class="audio" src="D:\Sublime Text 3\first\Clock-ringing.mp3" loop="true">
Giox
  • 4,785
  • 8
  • 38
  • 81
0

Thanks. I tweaked it so that to hide the controls and autoplay.

 <audio controls autoplay loop>
   <source src="D:\Sublime Text 3\first\Clock-ringing.mp3" type="audio/mpeg">
 </audio> 

<style>
    audio {
    display: none;
  }
</style>