html5 play audio code example
Example 1: javascript play audio
//play audio with from html audio element:
document.getElementById('myAudioTagID').play();
//play audio with out html audio tag
var myAudio = new Audio('my_great_song.mp3');
myAudio.play();
Example 2: how do you play audio files on html
<audio src="sound.mp3" autoplay></audio>
Example 3: html5 audio
<video src="http://v2v.cc/~j/theora_testsuite/320x240.ogg" controls>
Tu navegador no implementa el elemento <code>video</code>.
</video>