KenT2 / pipresents-gapless

A retired version of Pi Presents. Please use Pi Presents KMS which works on legacy RPi OS Bullseye or Pi Presents GTK which works on RPi OS Bookworm and RPi Model 5
https://pipresents.wordpress.com
Other
210 stars 43 forks source link

Question about a show based on magicpicture #151

Open Knightrider6224 opened 2 years ago

Knightrider6224 commented 2 years ago

Hi, Sorry to post this question but I'm struggling with a small addon I'd like to make to a show based on magicpicture example. This show runs perfectly for more than two years now, each video ( 8 playing in random ) is triggered by a PIR sensor or a RF remote control both connected to the same GPIO, I've added a mechanical switch to jump from the sensor function to the remote. I'm trying now for 3 days to add a second button of the RF remote ( or pir sensor, connections are the same ), this second button should launch a specific video file and only this one. I've added a new binding in the GPIO config file but I don't know how to tell this video file to respond to it. Could you please give me a hint ? that could lead me on track.

Many thanks

KenT2 commented 2 years ago

Hi You need to add a child track to the mediashow. The Play command will then play the video and return to the magic picture show. Hopefully this will interrupt the Freeze at Start but I'm not sure about this.

Knightrider6224 commented 2 years ago

Thanks for the answer, I don’t remember seeing the child track option in the magic picture example, I’ll look into it again. So you’re telling me to add in this video option PIR2 play “video reference” after being included in the child track tab ?

Le 12 avr. 2022 à 20:56, Ken @.***> a écrit :

 Hi You need to add a child track to the mediashow. The Play command will then play the video and return to the magic picture show. Hopefully this will interrupt the Freeze at Start but I'm not sure about this.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

KenT2 commented 2 years ago

Yes that is correct. pp_interactive_1p3 is an example of a child. It is slightly different as the child is a menushow not a video track