Skip to content

Instantly share code, notes, and snippets.

@shenqihui
Created May 28, 2014 01:26
Show Gist options
  • Save shenqihui/e891a492d5a5c48051f6 to your computer and use it in GitHub Desktop.
Save shenqihui/e891a492d5a5c48051f6 to your computer and use it in GitHub Desktop.
var video = document.getElementById("video");
function getCurTime() {
console.log(video.currentTime);
setTimeout(getCurTime, 200);
}
getCurTime()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment