mhmd mhmd - 1 year ago 107
jQuery Question

Autoplay sound mp3 each one minute

how can using php play a sound each 1 or 2 min

when a user enter in the page the first sound play

after 1 min another sound will be played and the first will be stopped of
course all that will be auto play

html5 code:

<audio controls autoplay>
<source src="horse.mp3" type="audio/mpeg">

Answer Source

Simply you can merge both sound with your timing and implemented just like this:

<audio controls="controls" onloadeddata="audioSoundFunction()">
    <source src="horse.mp3" type="audio/mp3" />


function audioSoundFunction() {
  var audioSound = this; 
  setTimeout(function() {; 
  }, 10000)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download