HTML5 audio with javascript
Create audioElement
var audioElement = document.createElement(‘audio’);
want to use with current audio tag
var audioElement = document.getElementById(‘myaudio’);
Play
audioElement.play();
Pause
audioElement.stop();
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.
html audio with jquery UI
I need to implement , next , previous and change to another music when music has been stop.
HTML 5 Demo
Today I found a new website. That it HTML5 Demo 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.




