0

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.

1 comment

  • 0
    Avatar
    RokuLyndon


    It would look more like this:



    GPIOENABLEINPUT,0,,



    EVENTS,,button:0,videoend

    STATE,attract.mpg,motion.mpg,

    STATE,motion.mpg,,attract.mpg



    There has to be a state entry for each file that will play.



    I also sent you the csv file.
Please sign in to leave a comment.