-4

How can I seek to a particular location in video using videojs api?

2 Answers2

0
var player = VideoJS.setup("my_video");
player.play();
player.currentTime(1337);

I can't believe you couldn't find this on Google...

MMM
  • 7,221
  • 2
  • 24
  • 42
0

The API documentation is a good place to start, in particular the .currentTime(seconds) function.

andyb
  • 43,435
  • 12
  • 121
  • 150