Add a handler to the timeupdate
event raised by the audio
control. Inside the handler, look at the control's currentTime
property.
var audioControl = document.getElementById('myaudio');
audioControl.ontimeupdate = function () {
if (audioControl.currentTime >= 30) {
// do something
}
}