Totally blocked with my patch.
This patch selects some movie files then play it in random order with randomly generated playback length (loop points).
The problem is it happens sometimes, and very often times,
the loop start point is bigger than loop end value and it makes the whole patch blocked 'cause the the playback time reaches the loop end value, it has to launch another movie file.
I've tried all the possible tryouts and I'm totally blocked and now I'm really sure that I CAN NOT SOLVE THIS MYSELF.
I've already tried some questions here but it's difficult to do that 'cause I'm not sure of the source of the problem.
PLEASE HELP ME WITH THIS PATCH.
thank you, I'll really appreciate.
When you generate your random loop start point, just choose a length (can also be random) and add that to get the end point. This way the end point will always be later than the start, rather than doing a random one for each.
Not sure what happens if the end point is beyond the length of the video... when you load a movie, do a getduration, then set the end loop point number box with "max $1" to ensure it doesn't go over (if it's a problem).
--CJ
Yep, like seejay said, don't pick em totally random.
First, get the movie length.
Pick a random fragment length shorter than that.
Choose a starting point that will make the fragment end before the end of the movie.
Something like this (sorry, no max5):