mpd restart of shoutcast stream after network error
Posted: Fri Oct 11, 2013 12:57 pm
Okay, I'm using mpd and it has one playlist item - a URL to a shoutcast stream. Everything works great, but if a network error occurs or the shoutcast stream becomes unavailable, it just stops playing even when the network error clears and the stream is back up and running. You have to issue an mpc next command or mpc stop; mpc play to get the stream going again.
I've got a temp work around by using a cron job every 30 minuts to kick it with "mpc next" - and it works, but cause a 1/2 sec audio glitch when the network and stream are working fine...
In summary: how to continuously play a shoutcast stream, even after "prolonged" (i.e. >60secs or so) network or stream errors/outages???
Anyone have any ideas on this?
Thanks,
-Lee
I've got a temp work around by using a cron job every 30 minuts to kick it with "mpc next" - and it works, but cause a 1/2 sec audio glitch when the network and stream are working fine...
In summary: how to continuously play a shoutcast stream, even after "prolonged" (i.e. >60secs or so) network or stream errors/outages???
Anyone have any ideas on this?
Thanks,
-Lee