Get current time from video player

Hi!

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!

Hi,
Please take a look at our API: http://player.kaltura.com/docs/api#video.player.currentTime

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

1 Like