|
| View previous topic :: View next topic |
| Author |
Message |
cfar893fm
|
Posted: Sun Nov 02, 2008 5:41 am Post subject: auto-reconnect to an mp3 stream? |
|
|
does anyone know of an mp3 player that can be set to automatically reconnect to an mp3 stream if the connection cuts out? im using xmms to listen to an icecast2 stream on radio.blagblagblag.org, and i need it to stay connected 24/7, but occasionally the source (muse) gets disconnected. muse waits 10 minutes then reconnects, but someone has to click play again for xmms to start. any ideas how to automate this?
thanks!
|
|
|
 |
jebba
|
Posted: Sun Nov 02, 2008 7:38 pm Post subject: Re: auto-reconnect to an mp3 stream? |
|
|
| cfar893fm wrote: | does anyone know of an mp3 player that can be set to automatically reconnect to an mp3 stream if the connection cuts out? im using xmms to listen to an icecast2 stream on radio.blagblagblag.org, and i need it to stay connected 24/7, but occasionally the source (muse) gets disconnected. muse waits 10 minutes then reconnects, but someone has to click play again for xmms to start. any ideas how to automate this?
thanks! |
Quick and dirty script (untested) with mplayer:
| Code: | while true
do mplayer http://radio.blagblagblag.org:8000/foo.ogg
sleep 2
done |
That will keep retrying every two seconds if the stream drops.
|
|
|
 |
cfar893fm
|
Posted: Sun Nov 02, 2008 8:39 pm Post subject: |
|
|
thanks! i think that'll work...
|
|
|
 |
|
|
|