I m working on a automated TV on a raspberry pi.
The algorithm is quite simple:
A javascript/node.js app get all playlist/command...
But I m forced to start omxplayer through a .sh file:
app.js:
Code: Select all
...
exec('/home/pi/play.sh', [file], function (error, stdout, stderr){...});
...
Code: Select all
if pgrep omxplayer;
then
echo "AR"
else
omxplayer $1 > dev/null
fi