Toggle repeat option while playing

This forum is about all development around libVLC.
Biblock
New Cone
New Cone
Posts: 2
Joined: 09 Jul 2016 00:19

Toggle repeat option while playing

Postby Biblock » 09 Jul 2016 00:26

Hello

Is there a way to toggle the "repeat mode" of the mediaplayer while the media is playing ?

I managed to set it beforehand passing ('--input-repeat=-1") when creating the instance so any mediaplayer created with this instance will repeat the playback.
But now, I need a way to toggle it while it's playing. Is it possible ?

chouquette
Developer
Developer
Posts: 291
Joined: 15 Apr 2010 00:54

Re: Toggle repeat option while playing

Postby chouquette » 09 Jul 2016 14:48

If you want to loop, you will have to use a playlist and a media list player: http://www.videolan.org/developers/vlc/ ... layer.html

You can then use the libvlc_playback_mode_t enum to enable/disable loop

Biblock
New Cone
New Cone
Posts: 2
Joined: 09 Jul 2016 00:19

Re: Toggle repeat option while playing

Postby Biblock » 10 Jul 2016 14:45

Okay, thank you !


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests