RPiVideoLooper icon indicating copy to clipboard operation
RPiVideoLooper copied to clipboard

First Video Skipped on First While Loop

Open rmcaninch opened this issue 9 years ago • 3 comments

The counter variable should probably be incremented at the bottom of the loop. Currently it skips the 0 video until it makes the 2nd pass through the list of videos.

rmcaninch avatar Jul 04 '15 07:07 rmcaninch

This is the exact issue I am having as well. Do you know of a work around or way to make it work correctly? Is there a change to the code that could be made to make it work. I see the increment should be at the bottom of the loop. Any code changes would be helpful as this is driving me batty as I have an exact order and it is not following it.

Thank you very much.

RichShumaker avatar Dec 24 '16 03:12 RichShumaker

Been awhile since I looked at this. But in startvideos.sh move line 45 "let current+=1" to the end of the if block. So move it to right before the fi

That looks like it will do it.

rmcaninch avatar Dec 24 '16 03:12 rmcaninch

@rmcaninch thanks for the update. I just noticed this as my notifications didn't notify me. Need to update this and try it out. Thanks again for your help.

RichShumaker avatar Jan 06 '17 22:01 RichShumaker