i have played with the above c# example and the latest libvlc which was compiled into a custom control as in the latest suggestions, but still cannot figure out the preferred way of seeking to a specific time in seconds in relation to a trackbar control.
the "position" member of the VLanControl.TrackPosition structure is not quite clear to me, as it is not a percentage or time in milliseconds.
here is a fix i've come up with that provides an adequate conversion so maybe this can help someone but I would love to know how the libvlc developers intended this functionality to be used.
this code seeks to the exact second in the video, although this still may not be enough accuracy for my project. is it possible to seek to a keyframe/frame? any input is greatly appreciated, thanks.
Code: Select all
double tmp = this.trackBar1.Value * 1.802d;
double findpos = ((double.Parse(tmp.ToString()) / 10000));
this.vlcUserControl1.MoveToPosition(new VLanControl.TrackPosition(0, findpos));