![]() |
Re: [application] pyRadio (Pandora)
You and I appear to have duplicated efforts tonight.
I also spent a couple hours tonight working on converting pyRadio to MeeGo. The native back-end for MeeGo is actually GStreamer and MediaBox already had a GStreamer backend that ties exactly into the framework that I am already using from there for MAFW and OSSO. Once I cleaned that code of the stuff I don't use and put it on there a simple if statement allows me to switch between backends based on the device it's running on. That way same source can be used for all devices (not sure how you coded yours). The first major problem I ran into (after converting to PySide) was that MeeGo does not have MP3 support and you are supposed to use 'fluendo' ones. I didn't want to sign up at the fluendo place, nor did I want to have to compile my own for ARM, so I went to debian here, extracted the .so file and put it in my ~/.gstreamer-0.10/plugins folder. The app loads, loads the graphic and the stations and the song name, but then seg faults. So i went to the command line and tried playing the URL directly from pandora using Code:
gst-launch-0.10 playbin uri=http://biglongurl Code:
Setting pipeline to PAUSED ... Unless you want to take it over for good I'll keep looking into it tomorrow. But if you want to maintain it for MeeGo that's fine too. (Note: MediaBox also has an mplayer backend code that would integrate right into the current system as well) |
Re: [application] pyRadio (Pandora)
I'm not really looking for long-term maintenance (who ever is?), I was just trying to get it working in the meantime for myself and other people who were missing Pandora *now*. If you want to keep looking at fixing gstreamer support, or steal the MPlayer backend from MediaBox (does it even use AbstractBackend already? That'd be a drop-in! I feel I may have wasted a lot of my time this weekend writing one that's more buggy than not). I don't know if stealing the binary for mp3 support from debian will work, you'll probably have to compile *something*. I can maybe help with this tonight, if all it needs to work is a proper gstreamer mp3 lib. Or, I can look at what you have and see if I can debug it. Do you have the code for the MeeGo branch somewhere I can get it?
|
Re: [application] pyRadio (Pandora)
Quote:
There is a backend for MAFW, OSSO, Gstreamer and Mplayer that all use that same framework and are drop-in replacements for eachother. Chances are, if you got mplayer working with your mplayer binary, his drop-in mplayer backend will work perfectly. I will grab that piece as well and clean it up removing the parts pyRadio does not use like I do with all the other backends (like his logger) and package it all up tonight. Ultimately, just like I went through the evolution of libfaac, then gstreamer, then MAFW/OSSO for the N900 and N8x0 - I am a believer that getting it to work with the standard device backend is the most 'elegant' and 'proper' approach. There is nothing at all wrong with using mplayer, but if we can get gstreamer (which is what I was told is the sudo-'official' backend) to work that would be best I think. Whatever enhancements they do to the devices for the 'official' backends gets inherited by the radio application. Notably, being able to playback audio on the N900 while in "Silent" mode. ETA: And yes, you saw that right: I had this entire thing working with a custom gstreamer backend at one point that I totally ripped apart when I found MediaBox's MAFW and OSSO pieces and used that instead. So I'm essentially now going backwards.... |
Re: [application] pyRadio (Pandora)
Quote:
Quote:
Are you ever on IRC? I'm in the #harmattan channel pretty much 24/7, same nick as on here. |
Re: [application] pyRadio (Pandora)
Quote:
I am only near my computer in the evenings MST though, so you'll see my name but I won't respond until evening. Feel free to send me a PM (should just be FatalSaint). ETA: Also, keep in mind I am working in MeeGo, not Harmattan. Harmattan is the bastard byproduct of the lonely MeeGo and the neglected Maemo one-night stand. It's MeeGo-ish, but uses DEB. MeeGo uses RPM. |
Re: [application] pyRadio (Pandora)
Hey Saint!
From your coding, it looks as though you're loading colors from the hildon default scheme or something. Is there a way to change my hildon colors by command line? I'd like too see if it's possible to have a black background like your N900 version. :) Right now, I'm using the Nuevo (sp?) clear theme if that matters at all. Peace. :) |
Re: [application] pyRadio (Pandora)
Quote:
I do not manually set the background colors anywhere that I can recall. Like I said I did it once and some things didn't work and I decided it wasn't worth the effort. However, it currently looks like total trash in MeeGo, and I have no idea what it looks like it Harmattan (maybe rm_you can post a screenshot). My intent, unless rm_you decides to package and upload pyRadio somewhere for MeeGo/Harmattan - is that once I/we get it working on MeeGo/Harmattan and changed to pySide I will actually update both Fremantle's and Diablo's version to match as well so that I am still working from the same sources. During all this I will attempt to add my own colors to the app so that it can look somewhat consistent across the devices. Originally, I had preferred to let it look integrated into each device separately - but given how god awful it is on MeeGo I need to do something about that. I've also contemplated totally changing it to pySide + QML.. -- Actually, it seems I might be able to access Pyside directly from QML.. I'll need to look into it more. |
Re: [application] pyRadio (Pandora)
Quote:
If you want to investigate QML, I could maybe help with that, but if you want to stick to PySide, that's fine too. I'll definitely help with building/packaging in the meantime though. Edit: Oh yeah, and it looks like total trash in Harmattan as well. :P |
Re: [application] pyRadio (Pandora)
Most likely not since I do not see myself getting the N9 due to a lack of hardware keyboard. It's a beautiful phone.. and I bruised my head the day I saw the hands-on videos knowing that Nokia pretty much ensured it's failure before they even launched it and are determined to see it go the way of the Dodo.
The next phone I get will most likely be a MeeGo if one is ever released that has a HW keyboard - and short of that.. I really have no idea. There is nothing else I want right now :(. |
Re: [application] pyRadio (Pandora)
Quote:
Prior to that though, was definitely looking around and being sorely disappointed in my options: G2 and... ... old phones? Nothing really in the latest generation of smartphones with a hardware keyboard. :( I'll talk to you on IRC tonight and get your pyradio-x.x.tar.gz whenever you have it ready for meego, make the necessary changes for harmattan,and set it up so I can use your meego package as my upstream. :) |
All times are GMT. The time now is 12:08. |
vBulletin® Version 3.8.8