Get current time from video player


Simple question: How can I get the current time from the video player? I assume this can be done with JavaScript?

Let’s say I’m playing a video. I want to do stuff like pressig a button and it will display the current time the video is playing at.

Thank you!

Please take a look at our API:

So, you can get the current time by calling kdp.evaluate(’{video.player.currentTime}’).
“kdp” holds a reference to the player.

1 Like