I'm trying to do a simple "one button" play/stop. I have a jpg menu that leads to the video with a GPIO button and when the video is playing I wan't that same button to lead back to the menu but only if it's pressed 5 seconds.
I followed this tutorial https://support.brightsign.biz/hc/en-us/community/posts/115000017094-Hold-button-for-x-seconds-to-go-to-previous-state?page=1#community_comment_15289818319387 but I can't get it to work, as soon as I press the button the video stops and goes back to the menu.
What am I doing wrong ? Is there another way ?