| Author |
|
thx1200 Enthusiast

Joined: 01 December 2007 Posts: 133
|
| Posted: 12 March 2008 at 9:42pm | IP Logged
|
|
|
I can't get PocketPlayer to consistently start playing a URL when I pass the URL as an argument.
Here's what I'm doing.
I have a program that I wrote that stores "presets" for internet radio stations. When I click on the preset button it runs \Program Files\Conduits\PocketPlayer.exe http://URL_to_Internet_Radio. If PocketPlayer is NOT running, the URL will start playing automatically. However, if PocketPlayer is already running, the URL will load (as can be seen by the title), and you can see it say "buffering" but then it immediately stops and you have to press "play" manually to get it to play.
This is normally not a huge deal, but the whole point of the little app I'm writing is to provide an experience like "presets" on a standard radio. It is annoying to have to hit "play" after choosing a new preset. :-)
I have the setting "Start playing at open" checked (enabled).
Any tips?
|
| Back to Top |
|
| |
thx1200 Enthusiast

Joined: 01 December 2007 Posts: 133
|
| Posted: 14 March 2008 at 2:17am | IP Logged
|
|
|
I found a work-around for my application (.Net CF 2.0, so the various interops were a pain), but this behavior still seems like a possible bug.
Anyway, my work around is to launch PocketPlayer, and when my application loses activation (indicating that PP has started), it enumerates the process list, finds PP's PID, uses that to find PP's hWnd, then uses SendMessage (coredll.dll) to send the following commands, as seen in the PP SDK...
SendMessage(hWnd, WM_BUTTONPRESSED, ACTION_PLAY, MAPPED_BUTTON_DOWN)
SendMessage(hWnd, WM_BUTTONPRESSED, ACTION_PLAY, MAPPED_BUTTON_UP)
The PP SDK seems to be a bit behind... It says version 2.7. Also, some SDK documentation would be awesome. Or at least some comments in the code. ;-)
Anyways, great app!!! Hoping a Conduits person can confirm if the auto-play behavior is a bug or not.
Anybody interested in my "radio presets" app?
|
| Back to Top |
|
| |
JustusIV Expert

Joined: 19 February 2008 Posts: 15
|
| Posted: 15 March 2008 at 12:53pm | IP Logged
|
|
|
Do you think this is the same thing that is happening here.
http://www.conduits.com/community/forum_posts.asp?TID=1145&P N=2
|
| Back to Top |
|
| |
thx1200 Enthusiast

Joined: 01 December 2007 Posts: 133
|
| Posted: 15 March 2008 at 6:19pm | IP Logged
|
|
|
Not sure... It could be related, but my data connection is already established, so I'm not sure. I have Push Email setup through Exchange, so my data connection is always active. Mine still won't play automatically, even though it's always active.
|
| Back to Top |
|
| |
|
|