Page 1 of 1

setTime getTime is wrong

Posted: 12 Dec 2014 01:33
by ph1b
I want to start a file at a certain position.

so I init the vlc and then play an mrl directly and when it started playing i directly set the time.
When I then get the time, at first it returns the correct set time, but then for about 400ms it returns 0. What is a approach to get the correct time?

After pausing then resuming, the time stays correct.

Re: setTime getTime is wrong

Posted: 02 Jan 2015 17:01
by Jean-Baptiste Kempf
You need to wait for playback to start.