Getting Current YouTube Video Time

ytplayer = document.getElementById("movie_player");
ytplayer.getCurrentTime();

See the api

Update: if it didn’t work, also try player.playerInfo.currentTime (codepen live example)

Leave a Comment