setTime getTime is wrong

This forum is about all development around libVLC.
ph1b
New Cone
New Cone
Posts: 5
Joined: 09 Dec 2014 02:15

setTime getTime is wrong

Postby ph1b » 12 Dec 2014 01:33

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: setTime getTime is wrong

Postby Jean-Baptiste Kempf » 02 Jan 2015 17:01

You need to wait for playback to start.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: Jona and 25 guests