Page 1 of 1

libVLC with C#/WPF without loop method?

Posted: 27 Aug 2015 16:49
by Taldrit
Hi,

I installed the libVLC packages from NuGET and made a simple MediaPlayer in WPF.
There seems to be no loop method.
I tried to work with EndReached, but then I would have to restart the VideoFile I wanted to show. And that results in a short black screen.
Also I tried to use PositionChanged, but there I only get every ~600ms a "stoppoint" and because my video file is exactly 1560 ms in length, I have a hard time to grab it before the end.
Is there anything I can do to get a loop without interruptions?

Re: libVLC with C#/WPF without loop method?

Posted: 28 Aug 2015 13:42
by Rémi Denis-Courmont
VLC does not support seamless loop.

Re: libVLC with C#/WPF without loop method?

Posted: 28 Aug 2015 14:20
by Taldrit
If I use the normally installed VLC-Player, I can loop videos (and that nearly seamless)... why can't I do this with the libvlc?

Re: libVLC with C#/WPF without loop method?

Posted: 28 Aug 2015 14:25
by Rémi Denis-Courmont
You can do the exact same with LibVLC. It's not seamless.

Re: libVLC with C#/WPF without loop method?

Posted: 28 Aug 2015 15:32
by Taldrit
Yeah, but how? The only thing I can think of is, to catch the OnPositionChanged-event, but that triggers only every ~600ms... Is there a possibility to reduce this to 100ms? Then I could work with it...