0

How can i get the count of played seconds of embedded youtube video?

exclude the count when video is paused/not started/skipped/ buffering
only the played seconds, how to detect them ?

Osa
  • 1,922
  • 7
  • 30
  • 51

1 Answers1

0

Use current time

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

https://developers.google.com/youtube/js_api_reference

Is this what you were looking for?

roymustang86
  • 8,054
  • 22
  • 70
  • 101