Home    Products    Downloads    Purchase    Support    Company    Search  
  About    News    Contact    Newsletter   Community 
Conduits Community Forums
  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Conduits > Pocket Player
 Conduits Community > Conduits > Pocket Player
Subject Topic: Won’t start playing automatically... Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
thx1200
Enthusiast
Enthusiast


Joined: 01 December 2007
Posts: 133
Posted: 12 March 2008 at 9:42pm | IP Logged Quote thx1200

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 View thx1200's Profile Search for other posts by thx1200
 
thx1200
Enthusiast
Enthusiast


Joined: 01 December 2007
Posts: 133
Posted: 14 March 2008 at 2:17am | IP Logged Quote thx1200

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 View thx1200's Profile Search for other posts by thx1200
 
JustusIV
Expert
Expert


Joined: 19 February 2008
Posts: 15
Posted: 15 March 2008 at 12:53pm | IP Logged Quote JustusIV

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 View JustusIV's Profile Search for other posts by JustusIV
 
thx1200
Enthusiast
Enthusiast


Joined: 01 December 2007
Posts: 133
Posted: 15 March 2008 at 6:19pm | IP Logged Quote thx1200

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 View thx1200's Profile Search for other posts by thx1200
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide
Skin by Mad ASP
© Copyright 2010 Conduits Technologies, Inc. All Rights Reserved.
Big thoughts in small spots.

Conduits develops Pocket PC, Handheld PC and Windows Mobile software
for devices such as the HP iPAQ, Dell Axim, Palm Treo 700w and Pocket PC Phone Edition.
Questions or comments about our website? Let us know.