I would like to play the content of a folder on an HDMI TV. Using omxplay it's straightforward through a script or program.
However when the user change channel, or switch input on his/her TV, I would like the script/program to stop and only restart when the raspberry input is selected again on the TV.
The tvservice command with its monitoring option (-H) doesn't seems to give me any meaningful results.
Is anybody know how I could achieve that?