mercredi 31 décembre 2014

Playing audio in HTML5 javascript

I understand that audio can be played by using an tag in html with a scr parameter and autoplay. But in my case, I'm working in javascript and would just like to play audio data using javascript. Does it still make sense to make an tag? I have a method called playAudioAtUrl(url) and I am not sure how to write that in javascript without using some kind of outside library.


Aucun commentaire:

Enregistrer un commentaire