BLAG

BLAG Forums
It is currently Wed Dec 17, 2014 11:28 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Nov 02, 2008 5:41 am 
Offline

Joined: Wed Nov 01, 2006 1:34 am
Posts: 32
Location: chattanooga, tennessee
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!


Top
 Profile  
 
PostPosted: Sun Nov 02, 2008 7:38 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 02, 2008 8:39 pm 
Offline

Joined: Wed Nov 01, 2006 1:34 am
Posts: 32
Location: chattanooga, tennessee
thanks! i think that'll work...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group