Added AlphaSign notification of streaming status

This commit is contained in:
Nephirus 2011-05-08 23:31:51 +02:00
parent 2aa6ae75a6
commit a1108f27d3

View file

@ -98,6 +98,7 @@ sub record_str {
sub stream_switch { sub stream_switch {
my ($s) = @_; my ($s) = @_;
system('ssh brmstream@brmvid "echo '.($s?'START':'STOP').' >/tmp/brmstream"'); system('ssh brmstream@brmvid "echo '.($s?'START':'STOP').' >/tmp/brmstream"');
system('~/alphasign/'.($s?'on':'off').'_air.py');
} }
sub record_start { stream_switch(1); } sub record_start { stream_switch(1); }