View Single Post
Old 03-12-2011, 10:17 AM   #54
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 830
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
Quote:
Originally Posted by d_creber View Post
I've been trying to get the bbc radio streams to work - they seem to be asx format. any ideas where i'm going wrong?

http://bbc.co.uk/radio/listen/live/r2.asx
The same problem I had, they are providing a play list as opposed to a stream for you. You will need to edit your control.sh and add something similar to:

InternetPlaylistLoad() {
curl -s "$@" | grep :// | sed 's/File[0-9][0-9]*=//' >/tmp/mplayer.playlist
loadplaylist /tmp/mplayer.playlist
}

prior to the case statement and add a case for each station eg:

r2)
InternetPlaylistLoad "http://bbc.co.uk/radio/listen/live/r2.asx"
;;

You will then need to edit the mplayer.ini to add a key mapping to start the play list playing.

Dave

PS: please note that I said similar to, you might need to modify the sed arguments to extract the stream URLs.

A little further testing shows you might need:

curl -s "$@" | grep :// | sed 's/[^I]*<ref href="//' | sed 's/" \/>//' >/tmp/mplayer.playlist

where I have a slightly different statement above.

Last edited by dhdurgee; 03-12-2011 at 11:07 AM. Reason: further clarification
dhdurgee is online now   Reply With Quote