Endless loop

This forum is about all development around libVLC.
Jona
Blank Cone
Blank Cone
Posts: 13
Joined: 11 Jun 2024 01:04
VLC version: 4
Operating System: Linux / Windows

Endless loop

Postby Jona » 20 Jun 2024 10:44

I read in earlier versions it was possible with

Code: Select all

input-repeat=-1
Now

Code: Select all

input-repeat
does not accept negative values anymore.
It is possible to loop a video like this:

Code: Select all

input-repeat=2147483647
But it is not really endless (of course, not very realistic that I need to play it for more than 2147483647 times).
Is there a way to implement an endless loop of a media file?

https://stackoverflow.com/questions/490 ... t-repeat-1

mfkl
Developer
Developer
Posts: 746
Joined: 13 Jun 2017 10:41

Re: Endless loop

Postby mfkl » 25 Jun 2024 16:15

The max value for input-repeat is 65535. You could use that, this will be enough for 99% use cases (likely including your own).

Another way would be to listen for the "End Reached" event and restart the playback when it fires.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests