Attract Loop, Button Push, Video then attract loop again
Greetings. I'm trying to create a script where in this case the demo video attract.ts is an attract loop in a museum.The video aq.ts gets triggered when button#1 is pushed. The button is locked out while aq.ts is playing. When aq.ts finishes, video attract.ts plays and opens up the button to be pushed again. Here is the script I'm using. I'm a newbie to scripting so I may be missing something obvious!
VIDEOMODE,1920x1080x60i,,,,,
GPIOENABLEINPUT,0,,,,,
EVENTS,,button:1,videoend
STATE,attract.ts:gpios(),aq.ts
I'm using the HDMI output. How bad was my attempt here?
Thanks.