Set_time and Get_Time Error

This forum is about all development around libVLC.
spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

Set_time and Get_Time Error

Postby spider58 » 27 Dec 2012 09:06

Hello. Sorry for my bad english.

I'm developing a mediaplayer and trying to seek anywhere on video.

but i have a problem.

example code:

Set time (Video was paused before this command)

Code: Select all

libvlc_media_player_set_time(myHandle,110000) '''''' SEEK TO 110th second
Get Time (video currently at pause mode)

Code: Select all

libvlc_media_player_get_time(myHandle) '''' RETURNS 109810 . So -190 Miliseconds difference
when i tried with other video this value changing (-10 miliseconds or 7 miliseconds ot etc...)

I never getting true get_time

Why happening those set and get differences.

At same videos VLC player working good.

Inadvance thanks for relations.

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: Set_time and Get_Time Error

Postby Jean-Baptiste Kempf » 27 Dec 2012 16:09

Are you sure you don't get times in microseconds?
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.

spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

Re: Set_time and Get_Time Error

Postby spider58 » 28 Dec 2012 09:42

Are you sure you don't get times in microseconds?
yes. i tried this. When i try to get_time in microseconds (<500 miliseconds) set_time this working good. and returning 110000.

But if i try to wait and (>=500 miliseconds) get_time returning wrong time. (as my first post)


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 61 guests