Option --play-and-stop

This forum is about all development around libVLC.
chinpao
New Cone
New Cone
Posts: 3
Joined: 28 Sep 2009 21:37

Option --play-and-stop

Postby chinpao » 13 Nov 2009 14:36

I m using Videolan.Interop for libvlc in C#. everything is fine but when I set in VideoLanClient.cs the option
string[] args = {... "--play-and-stop", ...}
VlcMediaListPlayer ignores the setting,
does anybody know, wheres my mistake?

Sebastian

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

Re: Option --play-and-stop

Postby Rémi Denis-Courmont » 13 Nov 2009 17:52

Yep. This option is only available through the interface playlist, not the media list player.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Idsa
Blank Cone
Blank Cone
Posts: 78
Joined: 22 Oct 2009 10:59

Re: Option --play-and-stop

Postby Idsa » 24 Nov 2009 08:45

Could you provide some code setting playlist option?

Idsa
Blank Cone
Blank Cone
Posts: 78
Joined: 22 Oct 2009 10:59

Re: Option --play-and-stop

Postby Idsa » 24 Nov 2009 09:17

I mean is there any method like libvlc_media_add_option for playlist?

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

Re: Option --play-and-stop

Postby Rémi Denis-Courmont » 24 Nov 2009 16:59

Libvlc does not use the playlist. You need to implement the loop logic yourself.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Idsa
Blank Cone
Blank Cone
Posts: 78
Joined: 22 Oct 2009 10:59

Re: Option --play-and-stop

Postby Idsa » 25 Nov 2009 04:42

Hm... I just need to set "loop" option. As you said earlier, it is accessible only throught interface playlist. So what "interface playlist" is and how can I access it through code?

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

Re: Option --play-and-stop

Postby Rémi Denis-Courmont » 25 Nov 2009 18:21

The playlist is only available through the interfaces, not through LibVLC. To reiterate you need to implement the behaviour yourself from the libvlc events.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Idsa
Blank Cone
Blank Cone
Posts: 78
Joined: 22 Oct 2009 10:59

Re: Option --play-and-stop

Postby Idsa » 26 Nov 2009 05:43

Rémi Denis-Courmont, what do you mean by interface? GUI? If so, it looks like "--repeat" option is not GUI-only feature. Without this options media in stopped when the end is reached, and with this option it is repeated more and more. If it were GUI-only feature, we would have the following workflow:
1. Play
2. End Finished
3. Stop
4. Play (loading again)
5. End Finished
6. Stop
...

But it looks like using "--repeat" the workflow is the following:
1. Play
2. End Finished
3. Set Position=0
4. End Finished
5. Set Position=0
...


Return to “Development around libVLC”

Who is online

Users browsing this forum: m1adow and 54 guests