omxplayer

Moderator: leecollings

Post Reply
Mrrodz
Posts: 22
Joined: Sunday 06 December 2015 21:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

omxplayer

Post by Mrrodz »

Hi I'm using omxplyer to play a rstp feed off my ip camera to a monitor connected to my domoticz pi. I've written a small bash script to open omxplayer when i turn a dummy switch on and it works well. The problem is that when i send the off command from the switch I've tried to run a script using pkill to close omxplayer but it does not shut down. if i run the script from command line it works fine.

#!/bin/sh

sudo /usr/bin/pkill -9 -f "omxplayer"

echo "Done"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest