Create audioElement
var audioElement = document.createElement('audio');
want to use with current audio tag
var audioElement = document.getElementById('myaudio');
Play
audioElement.play();
Pause
audioElement.pause();
Stop
audioElement.pause();
audioElement.currentTime = 0;
Duration (show with seconds)
audioElement.duration
Current Time (seconds)
audioElement.currentTime
Go to 35 secons
audioElement.currentTime = 35;
Change music
audioElement.setAttribute('src', 'music/Track01.mp3'); audioElement.load();
Ogg for firefox and opera. Mp3 for safari and chrome.
I need to implement , next , previous and change to another music when music has been stop.
Today I found a new website. That it [HTML5 Demo](http://html5demos.com/) site. It's so nice site. We can see drag & drop, Canvas, postMessage,etc.. We need to uprage my knowledge because HTML 5 is so nice and it will be future of the web development and design.