Page 1 of 1

Trying to develop a WinForms app using LibVLC but there are some issues...

Posted: 15 Sep 2024 02:57
by fractal-1
Hi. I'm a beginner trying to build some sort of video organizer in C# using WinForms & LibVLCSharp where on the top part is the video preview (from LibVLCSharp) and on bottom part the controls to move or copy the video. So far I managed to make the app show a VideoView where the video is playing + start/pause + stop.

There are some issues that I couldn't find a solution.
1. How can I get the current video duration after the video is loaded in the player?

2. How can I rewind the video for 1 second if a press let's say the left arrow? Same but 1 second forward if I press the right arrow.

3. How can I slow down the video playback speed to 20% of the original speed?

4. How can I set the loop video (restart playing after it ends)?

Please give me actual code examples and I'll try to incorporate them into my app. Thanks in advance!

Re: Trying to develop a WinForms app using LibVLC but there are some issues...

Posted: 18 Sep 2024 10:31
by mfkl
Most of these questions are answered here https://code.videolan.org/videolan/LibV ... type=heads. For the rest, google and stackoverflow are your friends.