Closed amilajack closed 8 years ago
This is not a method, its a property.
vlc.time = 1000; // will seek to 1 second from start
Is it possible to change the seek time?
Is it possible to change the seek time?
Don't understand what you mean.
Is it possible to change the current time of the vlc player? If so, it would be nice if you could show me an example.
@amilajack
console.log(vlc.time); // current time of playback in milliseconds
vlc.time = 1000; // set time in milliseconds, current example seeks to 00:01:00
console.log(vlc.position); // current position in playback as float (0.0 to 1.0)
vlc.position = 0.5; // set position as float, current example will seek to 50% of the total duration
@jaruba I am not sure what you mean by 'current position in playback'
video has 03:02:43 length, you watched 01:00:00 of it, then vlc.position will return something like 0.33
(because you watched 33% of the video)
Ohhh got it! Thanks.
Works properly now. Thanks!
How can I use the time method to seek a video?
Here's what I essentially have: