I am writing a Browser Plugin and need to find a way to get the current time a YouTube Video playing on YouTube using JavaScript. I have been playing around in the Chrome Ja
You can use Html5 Video API on youtube.com
youtube.com
var htmlVideoPlayer = document.getElementsByTagName('video')[0]; htmlVideoPlayer.currentTime
Note: It's not gonna work on Youtube Iframe API because Iframes are isolated. You cannot access the context of a Youtube IFrame .