I have successfully started lirc, and
using omxplayer I control switching between internet radio stations;
.lircrc is like this:
Code: Select all
begin
prog = irexec
button = 1
config = /home/pi/pripKillOmx; omxplayer http://live.slovakradio.sk:8000/Slovensko_128.mp3 &
end
begin
prog = irexec
button = 2
config = /home/pi/pripKillOmx;omxplayer http://live.slovakradio.sk:8000/Litera_128.mp3 &
end
pripKillOmx is:
Code: Select all
a=$(ps ax|grep omxplayer.bin|grep -v grep|awk '{print $1}'); if [ -z "$a" ] ; then echo ". "; else kill -9 $a; fi
but starting omxplayer each time I switch rado station produces popping sound,
and I think it is not really the right way how to use it ...but I am not expert ...can anybody help?
thanks