DI.FM Radio player

I just started out with Python about a two weeks ago and have come a long way. This is basically an online radio player, that makes it easy to switch between different radio stations. You aren't restricted to DI.FM streams, any should work fine, I just listen to a lot of DI.FM
It still needs a bunch of work, and there are probably a few bugs but I finally got a working version (I think) that I am happy with,
More info and the download can be found here:
http://gunnewiek.com/projects/di.fm.html
edit: download the .rar for best results.
Any comments / suggestions / pointers would be great as I am still learning.
So far I have made 0 progress on the recording part, so if you are pro with gstreamer and know how please let me know.
Last edited by Dethredic (2010-04-07 19:00:40)

Dethredic wrote:
On the webpage I mentioned that the ~/.streams file is temporarily in the same dir as the script.
Did you copy / paste the code into a new *.py file, or download the .rar? I would suggest you download the .rar as it contains the images and 'streams' file.
I copy the file. Now, i see the download file. Sorry for that, i'm used to see the link with underline.
I try with .rar package.

Similar Messages

  • BBC Radio Player no longer works with Airport Express

    This weekend I've been unable to get connected to the BBC Radio Player (from http://www.bbc.co.uk/radio). This has worked for the past year, and suddenly stopped.
    I have narrowed the problem down to the airport express. Radio streaming works without a hitch when I plug in the ethernet cable direct to either mac, or when I connect to another local Wi-Fi connection. But when I use Airport Express, the radio streaming always times-out.
    I even set up one of the computers to share internet over the airport, and was easily able to stream the radio connection to the other computer: so the airport cards themselves are working perfectly.
    I wondered if anyone else had the same problem. I've noticed it since I upgraded to 10.4.3 and included the 2005-01 Airport Update, though I didn't notice the problem for several days (I did no streaming in that time).
    I've tried downgrading to Airport 4.2, and even Airport Express Firmware 6.1.1, but nothing has solved the problem. There isn't an obvious setting I've missed - is there?
    If anyone else can stream BBC Radio with all the recent updates applied through Airport Express, I would be interested in hearing from them...

    Well, I found the answer to my problem. I'll add it here, in case someone else ever has the same problem.
    My Speedtouch modem was set to distribute DHCP addresses. But my Airport Express was ALSO set to do this. This had the strange effect of allowing everything to work, apart from Real Player radio/video streams. I have no idea why this was the only effect.
    The solution was to set the Airport Express to do nothing, and let the modem do it all. Now both computers can stream radio at the same time, and everything is fine. But it took many hours to find the problem.

  • Why won't the CHUM RADIO player work on my 9630 Tour? It says buffering but won't stream

    Im in Vancouver and trying to stream a local station on an app called CHUM Radio player. The station TEAM 1040 loads, says buffering but then wont play...
    I select Play...
    says "CONNECTION IN PROGRESS"
    then says "BUFFERING" forever.
    no volume no sound noTHING.
    Same with other available stations...
    BlackBerry Tour 9630
    Telus Mobility
    v 5.0.0.419 (Platform 4.2.0.179)
    I have unlimited data and stream with an app called Rabiobee with no problem. I have friends with BB Curves who have no issue with the app.
    Thanks in advance
    Dan.

    Let me suggest first off, just a simple reboot, and try again.
    With the BlackBerry device powered ON, remove the battery a few seconds and then reinsert the battery to reboot.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • N900 Radio player fails to load

    My device is running on the latest V 10.2010-12-9 firmware and I've the FM radio player installed, it worked fine until I done some pairing to the bluetooth, now the FM radio fails to load, I tried to uninstall and reinstall the player, also remove the pairing but still the same problem, any idea ??

    it might be worth looking in the update section to see if there are any updates for it, i haven't had any problems with it but i've had updates installed for it which might have had a fix for your problem

  • What's up with the I-tunes radio player not working now for several days?

    Wha's up with the I-tunes radio player not working now for several days? error message reads "an error occurred occurred while contacting the radio tuning service. Check your internet connection or try again later" My internet connection is fine.

    Having same issue on Powerbook G4 running 10.5.8 I suspect Apple disconnected the service.

  • BBC Radio Player on Q5 BB 10

    Hi
    any idea when i will be able to get the BBC Radio Player app on my Q%?

    Hi and Welcome to the Community!
    As has always been with BBs, the developers and not BlackBerry determine if/when their app will be available for any specific platform. Hence, you need to contact that developer to find out if/when they will do so for yours.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • BBC radio Player

    Hi everyone, I've got a small question, I have just turned rosetta off as it's just so slow! now I can't get the radio player to work from BBC. They use real player, I know that Real Player is not compatible for inter macs. Has any one managed to get around this yet?
    Any help would be great.

    Brighton Bloy,
    I do have RealPlayer10.1.0 [build 412] on the intel, it is not running under Rosetta nor is Safari.
    Make sure you allow it to close your browser when it prompts you after the installation. In it's preferences that you save the Media Types.
    I did register for it when prompted as well, I do have the free one not the Superpass, I hope this works for you.
    Eme: )

  • Streaming radio player for Webpage

    I am interested in putting a radio player on my iWeb page ('08) that will play a streaming broadcast from the internet. Only need to play 1 station (no other MP3s). I have seen many for WIN, but haven't located any for MAC. The only one I have found (Radio Tuner) is a widget that goes directly into Dashboard. Haven't been able to place it on my page. Any ideas will be greatfully appreciated!

    does it still play after exiting the website?

  • My iTunes radio player sound quality has degraded, what happened?

    My iTunes radio player sound quality has degraded, what happened?
    The other day I was checking out radio stations in iTunes, after I tuned to one of them odd thigs happened, i just moved on. Now my iTunes radio sounds like i am listeneing through a box or can on all stations.
    Can anyone help?

    It sounds like you blew out the paper cone that delivers the sound from the speaker. Depending on how much pressure you used to blow out would determine if the speakers are gone. From the sounds of it and your comment about it happened right after you blew air into the speakers tell me that is what happened. The speakers in an laptop are small and somewhat fragile. The edges of the paper vibrate when it receives the sound and after some passage of time they get weak and if you blew air directily on them, poof they're gone.
    Silverfox49

  • HT5848 I am in France and I can't find the iTunes Radio player in the music playier. Is it a French specification and if not what do I do wrong? Thanks for your help!

    In France with the new IOS7 I don't find the iTunes Radio in the music player.
    Is it a French specification or what do I do wrong? Thanks for your help

    Jamira4 wrote:
    In France with the new IOS7 I don't find the iTunes Radio in the music player.
    It is currently only available in the USA.

  • Mp3 radio player help

    Hi there!
    I'm kind of new with actionscript and would really appriciate
    any help. The thing is that I'm trying to create a flashmp3 radio,
    and I cant get it right. When I play mp3 files through that player,
    it works just fine, but only on localhost... When I upload it,
    browser eats whole ram that i have, wich is 1GB by the way, and
    song isn't even played. Just to mention I try to stick with
    actionscript 2. So if anyone knows what to do, I would be wery
    gratefull.
    You can see it "live" here (warning, it could crash your
    browser):
    www.mladen-lotar.net/player/player.swf
    And here's the "main code":
    //MOVIE PROPERTYS
    Stage.scaleMode = "noScale";
    _soundbuftime = 20;
    //VARIABLES
    var cue:Number = 0;
    var inc:Number = 0;
    var current_song:Number = 0;
    var next_song:Number = 0;
    var genre_p:String = "hip hop";
    var format = genre_txt.getTextFormat();
    var sound:Sound = new Sound();
    var song:Array = new Array();
    var genre_arr:Array = new Array();
    var artist_arr:Array = new Array();
    var title_arr:Array = new Array();
    //MAIN (loading xml file)
    var songList_xml:XML = new XML ();
    songList_xml.ignoreWhite = true;
    songList_xml.onLoad = function (success)
    if (success)
    var k:Number = -1;
    var gnr:String;
    var gnr_tmp:String;
    for (var i=0;
    i<songList_xml.firstChild.childNodes.length; i++)
    song
    = new Array();
    genre_arr = new Array();
    artist_arr
    = new Array();
    title_arr = new Array();
    gnr_tmp = songList_xml.firstChild.childNodes
    .attributes.genre;
    if (gnr == gnr_tmp)
    {k++;}
    else
    {gnr=gnr_tmp;k=0;}
    genre_arr[k][gnr] =
    songList_xml.firstChild.childNodes.attributes.genre;
    artist_arr[k][gnr] = songList_xml.firstChild.childNodes
    .attributes.artist;
    title_arr[k][gnr] =
    songList_xml.firstChild.childNodes.attributes.title;
    song[k][gnr] = songList_xml.firstChild.childNodes
    .attributes.url;
    //DISPLAY LOADING
    displayPercent = function ()
    track_status.alpha = 30;
    track_position._alpha = 0;
    var percent =
    (sound.getBytesLoaded()/sound.getBytesTotal()*100);
    track_status._width = percent * 4.01;
    if (sound.getBytesLoaded() == sound.getBytesTotal())
    track_status.alpha = 30;
    track_position._alpha = 0;
    alpha1 = setInterval(al1, 100);
    clearInterval(timer);
    timer = setInterval(displayPercent, 100);
    al1 = function ()
    if (track_status._alpha > 0)
    {track_status._alpha -= 5;}
    if (track_position._alpha < 100)
    {track_position._alpha += 10;}
    if (track_position._alpha == 100 and track_status._alpha ==
    0)
    clearInterval(alpha1);
    alpha1 = setInterval(al1, 100);
    var percent2:Number;
    displayPosition = function ()
    percent2 = ((sound.getPosition()/sound.getDuration()))*100;
    track_position._width = percent2 * 4.01;
    track_txt.text = track_position._width;
    if (sound.getPosition() == sound.getDuration())
    clearInterval(display_position);
    var display_position = setInterval(displayPosition, 100);
    //TRACK POSITION
    trackPosition = function ()
    Inc = function ()
    cue = sound.getPosition() / 1000;
    //trace ("Cue:" + cue + " Duration:" +
    sound.getDuration()/1000);
    //(sound.getDuration() / 1000)
    if (cue >= (sound.getDuration() / 1000))
    track_status._alpha = 30;
    track_position._alpha = 0;
    sound.start();
    current_song++;
    if (song[current_song][genre_p] == null)
    {current_song = 0;}
    playSong(current_song);
    position = setInterval(Inc, 100);
    //PLAY SONG
    function playSong(current:Number)
    clearInterval(display_position);
    clearInterval(position);
    clearInterval(timer);
    clearInterval(alpha1);
    sound.loadSound(song[current_song][genre_p], true);
    timer = setInterval(displayPercent, 100);
    position = setInterval(Inc, 100);
    genre_txt.text = genre_arr[current_song][genre_p];
    genre_txt.setTextFormat(format);
    artist_txt.text = artist_arr[current_song][genre_p];
    artist_txt.setTextFormat(format);
    track_title_txt.text = title_arr[current_song][genre_p];
    track_title_txt.setTextFormat(format);
    sound.start(0,1);
    trackPosition();
    sound.onLoad = function()
    display_position = setInterval(displayPosition, 100);
    var num:Number = 0;
    for (var i = 0; i < song.length; i++)
    if (genre_p == genre_arr[genre_p])
    num++;
    current_song = random(num);
    clearInterval(display_position);
    clearInterval(position);
    clearInterval(timer);
    clearInterval(alpha1);
    sound.loadSound(song[current_song][genre_p], true);
    timer = setInterval(displayPercent, 200);
    position = setInterval(Inc, 200);
    genre_txt.text = genre_arr[current_song][genre_p];
    genre_txt.setTextFormat(format);
    artist_txt.text = artist_arr[current_song][genre_p];
    artist_txt.setTextFormat(format);
    track_title_txt.text = title_arr[current_song][genre_p];
    track_title_txt.setTextFormat(format);
    sound.start(0);
    trackPosition();
    sound.setVolume(30);
    sound.onLoad = function()
    display_position = setInterval(displayPosition, 200);
    songList_xml.load("radio_list.xml");

    you're trying to start() your sound before it's loaded. fix
    that and retest.

  • HT5848 My iTunes Radio player just runs through the songs without stopping

    Ever since the newest IOS update, every time I pick a station on the iTunes Radio or use one of my own, the player will just run through all the songs it is going to play and will not stop.

    I just had the same exact problem. It's like the Nano was forwarding thru the songs by itself..nothing would play!
    So I went and looked at the manual, which suggested I try resetting it first. I did, and it worked! Here's what I did:
    The manual instructed me to turn the "hold" switch on & off. Then it said to hold down the Menu and center button at the same time, until the Apple logo appeared. Then in a few moments the main screen came back on...and I was able to play songs again.
    Hope this works for you, good luck!
    Dell 2400   Windows XP  

  • Safari and the BBC radio player....

    Hi all,
    Not sure where this is best being placed - so sorry if this is the wrong place. I have an iMac at home and have been listening to BBC radio stations happily through Safari for the last couple of years. I know that I downloaded something to make it work. I now also have a macbook pro as my works machine and I want to be able to listen to the radio within the office as I do at home.
    I just can not seem to get it to work - as far as I can tell I have downloaded flip for mac, real player and even windows media player for the mac - but it still will not play the stations.
    All help and advice very much appreciated.

    Questions about Safari would not be out of place in the Safari area. Tip: before you post there add the link to what you are not getting to work. I can tell you one thing, the obsolete and buggy WM Player for mac is not the solution.
    Have you tried Firefox? I just went to BBC radio homepage and listened live to BBC radio , which , using Firefox caused Quicktime (supported by Flip4mac) to launch and start playing the stream.

  • Firefox seems not to be supporting new BBC radio player. Safari is ok with it.

    I am a frequent user of BBC radio via the net. The BBC has re-vamped its player and this afternoon [01 04 11] I tried listening to Radio 7 and then Radio 4 to check. The listening panel showed up but there was no sound either on listen live or on 'listen again'. I am now listening to R7 live via Safari.
    I have not had problems before with Firefox and the BBC

    I had this problem too, but fixed it. In my case I was using the Flashblock extension. Adding bbc.co.uk to the whitelist resolved the problem. Maybe you people are using some kind of Adobe Flash filtering? Pls leave a comment as to whether or not this is the case.

  • Having Problem With Kisstory Online Radio Player

    Hello there, I started having this problem 2 days ago, what happens is I open the Kisstory Player http://kisstory.kissfmuk.com/live/ And nothing shows up where the " play " button should be sometimes the error " There has been an error loading this player " pops up, and the funny thing is when I disable the Shockwave Flash addon from my Firefox the player Shows but it does not play again, when I enable the addon the player dissapeaers again and is so anoying:( also When I clear my History ( cookies, Cache, browsing data etc ) and load the player straight after it shows and it plays perfectly but then if i want to open it again i have the same problem and have to clear my history everytime I want to load it ... please help ! Ive reinstalled flash several times tried running firefox in safe mode etc but cannot seem to fix it

    i've tried firefox and IE and same problem happened
    I should have looked closer the first time.
    Wanna know why you're seeing this?
    THERE IS NO SUCH THING as Flash Player Pro. Not from Adobe. Never has been.
    The reason you see it in EVERY browser is that your OS is infected with Adware.

Maybe you are looking for