mardi 3 février 2015

Play/Pause Audio Button Using HTML5 And JavaScript

I am facing a problem for a couple of hours. I have some Radio Channels into a HTML document. Every channel has an image (it's logo). I can't figure out how to make the "click to Play/Pause" working.


Here's the JSFiddle document : http://ift.tt/18LWrX0 123


If you click on the first image, it will play/pause the channel. The second button act like the first one.


How can I make it work, so that both of them would work independently and if I click on the second one while the first one is running, it would stop the first channel and start the second one?


I am sorry, I am a begginer :-).


Aucun commentaire:

Enregistrer un commentaire