MP3 did not solve my problem
if i go to my terminal then it's work like that(i used without the extra parameters to see my output)
Code: Select all
gianni@xxxxxx:~ $ mplayer http://icecast.vrtcdn.be/mnm_urb-mid.mp3
MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing http://icecast.vrtcdn.be/mnm_urb-mid.mp3.
Resolving icecast.vrtcdn.be for AF_INET6...
Couldn't resolve name for AF_INET6: icecast.vrtcdn.be
Resolving icecast.vrtcdn.be for AF_INET...
Connecting to server icecast.vrtcdn.be[5.79.75.39]: 80...
Name : MNM UrbaNice | Kwaliteit**
Genre : Urban
Public : no
Bitrate: 64kbit/s
Cache size set to 320 KBytes
Cache fill: 0.00% (0 bytes)
ICY Info: StreamTitle='';
this is my selector
and this is my code
Code: Select all
--
-- This script play a streaming radio when the device is changed
-- Start files with "mplayer -noconsolecontrols radiostation.mp3 &> /dev/null"
-- Start playlists with "mplayer -noconsolecontrols -playlist radiostation.m3u &> /dev/null"
--
commandArray = {}
if (devicechanged['Radio'] == 'Off') then
os.execute ("killall mplayer")
end
if (devicechanged['Radio'] == 'MNM') then
os.execute ("mplayer -noconsolecontrols http://icecast.vrtcdn.be/mnm-mid.mp3 &> /dev/null")
end
if (devicechanged['Radio'] == 'TopRadio') then
os.execute ("killall mplayer")
os.execute ("mplayer -noconsolecontrols http://loadbalancing.topradio.be/topradio.mp3 &> /dev/null")
end
return commandArray