How can I seek to a particular location in video using videojs api?
Asked
Active
Viewed 2,062 times
-4
-
Have you Googled `videojs seek`? – Pekka Apr 30 '13 at 11:47
-
Next time consult the documentation, asking questions like this is just plain lazy. – MMM Apr 30 '13 at 11:48
-
@pekka: if its duplicate then why dont you flag it – dreamweiver Apr 30 '13 at 11:49
-
@dreamweiver why should I *flag* it as duplicate instead of voting to close it? – Pekka Apr 30 '13 at 11:49
2 Answers
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