LibVLCSharp - TimeChanged event and SetPosition

This forum is about all development around libVLC.
sergiocapozzi
New Cone
New Cone
Posts: 5
Joined: 21 Apr 2019 00:50

LibVLCSharp - TimeChanged event and SetPosition

Postby sergiocapozzi » 21 Apr 2019 00:59

Hi,

I'm using LibVLCSharp.
I have two things that are not very clear to me:
1) I need a way to have a callback (ideally at each frame) with the current timestamp. I'm currently using the TimeChanged event, but I can see it get fired not so frequently. Like every 300/400 milliseconds.
2) If I try to set the Time while the video is paused, and then try to read the Time after setting it....there is a differency of few milliseconds. So in example if I set the Time to 2345, if I read it back I obtain a different value...like 2378!

Regarding issue 1) I read sommewhere in the forum that this is the way that libvlc work....and for now there is no way to get this callback fired more frequently. Is it true? Ar things going to change in the 4.0 release?

thanks

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: LibVLCSharp - TimeChanged event and SetPosition

Postby mfkl » 22 Apr 2019 05:34

Hey,

Not sure about 1) but open an issue at https://code.videolan.org/videolan/LibVLCSharp about 2), with your full code please (cause I cannot reproduce).
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 35 guests