HTML5 Audio Test - Simple
simple example
HTML
<body>
<h1>Audio Test</h1>
<p>Simple example</p>
<div>
<audio id="audio_" src="http://picosong.com/cdn/78aea68bb4faf1c5c958c4ad7100be60.mp3" preload="auto" controls ="controls"></audio>
<button id="next">Next</button>
</div>
</body>
JavaScript
var audio_player = document.getElementById('audio_');
var nxtbtn = document.getElementById('next');
var playSound = function() {
audio.play();
};
function next() {
audio_player.src = "http://www.sousound.com/music/healing/healing_01.mp3";
}
nxtbtn.addEventListener('click', next, false);