Page 1 of 1
Option --play-and-stop
Posted: 13 Nov 2009 14:36
by chinpao
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
Re: Option --play-and-stop
Posted: 13 Nov 2009 17:52
by Rémi Denis-Courmont
Yep. This option is only available through the interface playlist, not the media list player.
Re: Option --play-and-stop
Posted: 24 Nov 2009 08:45
by Idsa
Could you provide some code setting playlist option?
Re: Option --play-and-stop
Posted: 24 Nov 2009 09:17
by Idsa
I mean is there any method like libvlc_media_add_option for playlist?
Re: Option --play-and-stop
Posted: 24 Nov 2009 16:59
by Rémi Denis-Courmont
Libvlc does not use the playlist. You need to implement the loop logic yourself.
Re: Option --play-and-stop
Posted: 25 Nov 2009 04:42
by Idsa
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?
Re: Option --play-and-stop
Posted: 25 Nov 2009 18:21
by Rémi Denis-Courmont
The playlist is only available through the interfaces, not through LibVLC. To reiterate you need to implement the behaviour yourself from the libvlc events.
Re: Option --play-and-stop
Posted: 26 Nov 2009 05:43
by Idsa
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
...