audio.addEventListener("loadedmetadata",function(){ this.play();}); audio.addEventListener("timeupdate",function(){ console.log(this.currentTime);});