View Single Post
Posts: 75 | Thanked: 59 times | Joined on Nov 2009 @ Gilbert, AZ, USA
#125
Originally Posted by fatalsaint View Post
Seriously though, could you please launch pyRadio from the command line and try the donate buttons and give me the errors? I can not reproduce the problem on either the N900 or the N810.. they both seem to open either right to my Paypal or Pandora One as appropriate. It would be nice to see some output to see if I can fix anything.
I did write more detail on the bug, but it got lost in paypal land so i was lazy when i rewrote it.

Unfortunately, I don't get anything in the console output when I hit the donate buttons. The dialog just closes same as if I hit the close button. I do have Firefox installed, but the builtin browser is my default browser. I've also tried it both with and without the default browser running. Honestly, I wouldn't have wanted to complete the paypal process on my phone anyway, so it worked out alright for me. Maybe it is just another something weird with the python install on my particular phone. I just tried this test and it does not work:

Code:
~ $ python
Python 2.5.4 (r254:67916, May 17 2010, 21:00:32) 
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import webbrowser
>>> webbrowser.open_new('http://www.pandora.com/pandora_one')
False
>>> exit()
While I've got you here, I have a couple of feature requests for your consideration.

While driving, I plug my phone into my car with the a/v cable for audio and video (on the navi display on the dash). When I get out of the car, I want to be able to just unplug the phone and go, without having to unlock it and stop the audio or whatever. I use headphoned (http://maemo.org/downloads/product/Maemo5/headphoned/) and it works great -- when I unplug the cable, it automatically pauses the media player. With pyRadio, it does still appear to "pause" the MAFW subsystem, in that the audio stops and does not come out of the speakers when I unplug the cable. However, pyRadio doesn't seem to notice that this happened and it keeps "playing". It looks like it is getting notified by MAFW, though, so I was wondering if it would be an easy change to make pyRadio go into pause mode when this event happens. This is what i see on the cmdline when I unplug the headphone cable while pyRadio is playing:

Code:
MAFW STATE CHANGED 2
MAFW PROPERTY CHANGED transport-actions seek <type 'str'>
MAFW PROPERTY CHANGED volume 68 <type 'long'>
at that point, pyRadio stays in "play" mode and counts down into negative time. Hitting play/pause in this state puts pyRadio in pause mode, but doesn't output anything to the console (I'm guessing since MAFW is already in state 2 (pause?)). Hitting the play/pause button again puts pyRadio back in playback mode and resumes playing of the song (with the output below), but of course pyRadio is confused about where in the song it is and it eventually seems to just stop working (but that could be unrelated..)

Code:
PLAY
MAFW PLAYBACK 5144992 None <ctypes.LP__GError object at 0x5dff80>
MAFW METADATA CHANGED duration [0]
MAFW METADATA CHANGED is-seekable [False]
MAFW BUFFERING 0.0
MAFW METADATA CHANGED is-seekable [True]
MAFW BUFFERING 0.15000000596
MAFW BUFFERING 0.159999996424
MAFW BUFFERING 1.0
MAFW STATE CHANGED 1
MAFW PROPERTY CHANGED transport-actions seek <type 'str'>
MAFW METADATA CHANGED audio-codec ['MPEG 1 Audio, Layer 3 (MP3)']
MAFW METADATA CHANGED bitrate [128000]

The other request is just to increase the font size of the album/artist/title and time remaining counters, at least in landscape mode. It is hard to see at a glance on the screen, and nearly impossible at NTSC resolution (video out). Even with the small font, it sometimes truncates the artist -- perhaps artist and title could be broken out to separate lines so there are 3 lines (title, artist, album) under the album art? Maybe then the time counters could go between the play/pause/next buttons and the thumbs up/down buttons? I'd love to eventually see a progress slider like in the native media player, complete with a buffering percentage bar display like media player does (using those MAFW BUFFERING messages we seem to get?) , but I realize that probably isn't as easy as it seems.

Please don't think I'm expecting you to consider these changes today or anything -- enjoy your trip and thanks for the new 'quality' option!

BTW, I have also experienced several times the bug where one song ends, it starts playing the next song, and then a few seconds later it cuts off the second song and skips to a third song. I think it may be triggered when PR and MAFW get out of sync when MAFW gets paused or stopped for whatever reason (like from buffer starvation from a bad net connection, or from a phone call that pauses it) but pyRadio thinks the song is still playing.
 

The Following User Says Thank You to jsharper For This Useful Post: