Page 1 of 1

Endless loop

Posted: 20 Jun 2024 10:44
by Jona
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

Re: Endless loop

Posted: 25 Jun 2024 16:15
by mfkl
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.