libVLC with C#/WPF without loop method?

This forum is about all development around libVLC.
Taldrit
New Cone
New Cone
Posts: 4
Joined: 27 Aug 2015 16:36

libVLC with C#/WPF without loop method?

Postby Taldrit » 27 Aug 2015 16:49

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 28 Aug 2015 13:42

VLC does not support seamless loop.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Taldrit
New Cone
New Cone
Posts: 4
Joined: 27 Aug 2015 16:36

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

Postby Taldrit » 28 Aug 2015 14:20

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 28 Aug 2015 14:25

You can do the exact same with LibVLC. It's not seamless.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Taldrit
New Cone
New Cone
Posts: 4
Joined: 27 Aug 2015 16:36

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

Postby Taldrit » 28 Aug 2015 15:32

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...


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests