On 08/05/14 18:52, Brett Parker wrote:
On 08 May 18:07, Chris Green wrote:
I'm looking for a way to (simply) play BBC Radio 4 and other BBC stations on my desktop machine. I used to use radiotray but updating to xubuntu 14.04 seems to have broken that completely (it was always a *bit* flakey).
I don't want a full blown music player really, though one that's easy to configure to play BBC would be OK.
I *definitely* don't want a list of thousands of stations to select from which rarely includes BBC anyway, I just want to be able to enter a BBC radio URL and hear the radio.
OK - so here's what I'd do, I'd have a small script similar to the below...
--- SCRIPT --- #!/bin/sh
streamurl=$(wget -O - http://bbc.co.uk/radio/listen/live/r4.asx | sed -e'/<ref href/ { s#^[^"]*"##; s#".*$##; p; } ; d;' | head -n 1)
exec mplayer "$streamurl" --- END ---
And run that. This does rely on mplayer, but that shouldn't be too much of a hassle!
Brett, may I ask, what's it doing? I get that it's getting whatever's at the URL. I get that SED is a stream (of text) editor, but I don't follow what it's replacing or why. And head is ?
Paul: Going to the radio station's website and playing it there is the simplest way of doing it, but it does rely on the vagaries of individual station's "Players".
As it's just BBC radio stations you want, apparently they're all accessible here: http://www.bbc.co.uk/radio/
An alternative is the Radio Feeds website http://www.radiofeeds.co.uk/ This lists loads of radio stations with links to them and I think you can listen to them by simply clicking on the relevant link.
Radio Tray. Personally I'd give this another go. Uninstal and purge the configuration files. Delete your user config files too, making note of any stations you want to keep & reinstate. These files are at ~/.local/share/radiotray
Reinstall, and then hopefully, bob's your uncle.
Rhythmbox also plays radio stations OK.
Media Player Deamon (mpd) plays radio as well as music files, and is my current favourite solution. If you install it you install mpd (the deamon) and mpc (the controller) gets installed too. You can pass mpc a stream to play and it'll play it. I've not tried it this way though. I've installed the ROMPR package. This requires apache though, which I already have installed. Then you have a gui based list of radio stations (and music), and you can drag your favourites to a favourites section, then start them easily. MPD seems to not hog too much processor time or disk space and works nicely with Gnome Music Player Client (gmpc)
HTH
Steve