Page 1 of 1

LibVLCSharp - TimeChanged event and SetPosition

Posted: 21 Apr 2019 00:59
by sergiocapozzi
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

Re: LibVLCSharp - TimeChanged event and SetPosition

Posted: 22 Apr 2019 05:34
by mfkl
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).