Cyclic playback

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Idsa
Blank Cone
Blank Cone
Posts: 78
Joined: 22 Oct 2009 10:59

Cyclic playback

Postby Idsa » 23 Nov 2009 06:29

I need to play one file cyclically, but VLC unloads the file after the end of it is reached. Is any workaround to change default behaviour?

chris_g
Blank Cone
Blank Cone
Posts: 12
Joined: 12 Nov 2009 10:51

Re: Cyclic playback

Postby chris_g » 23 Nov 2009 09:12

My workaround is to have a timer wich checks the current time like this:

if( libvlc_media_player_get_time(_mp, &_vlcexcep) >= libvlc_media_player_get_length(_mp, &_vlcexcep)-someMilliseconds ){
//set video back to 0;
// pause it;
}

But if there is a better way I would appreciate that. I´d like to use the end reached event.

cg

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

Re: Cyclic playback

Postby Idsa » 23 Nov 2009 11:29

It would be great if there were a VLC option that would prohibit unloading video after end is reached.

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

Re: Cyclic playback

Postby Rémi Denis-Courmont » 23 Nov 2009 16:58

There is one in the playlist. From the command line, it's --loop
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: Cyclic playback

Postby Idsa » 24 Nov 2009 05:30

That's great! That's exactly what I need. Thank you very much!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 45 guests