Author |
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: May 05 2005 at 13:10 | IP Logged
|
|
|
Thanks, I'd already found Now Playing - I think it will do what I want, I was just looking for something more 'direct'.
I guess I can use my external serial applet to read the file and pass the relevant bits on to PH - it already does this for the temperature. Going the other way the applet can merge the PH status into the now playing info for display...
Anyway, thanks again.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 09 2005 at 15:54 | IP Logged
|
|
|
The next version of PowerHome will include a couple of new functions that should allow full control of Winamp. It should also allow you to query Winamp for information such as current title, playlist length, time remaining, etc. (Tony, you should be very happy )
Ive done research on the web and looked high and low for a way to implement something similar for Windows Media Player and have come up empty handed. It seems that Microsoft has an SDK for WMP, but this is primarily aimed at embedding WMP within your application where you will have full control. It does not include any mechanism to allow you to query or control the default WMP installed on the machine .
I would really like to include some form of control for WMP, but it doesnt look like I will be able to. The last thing that I am investigating is trying to create a separate application that includes the WMP control (which would then allow me to control it using the SDK). I just don't know if I can get it to support everything and act just like the standalone WMP application.
If anyone has any suggestions, I would be happy to hear them.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 09 2005 at 22:06 | IP Logged
|
|
|
Interesting, Dave! Let me know if you want to talk about features. The app I'm using is pretty powerful, but, there are things missing.
Tony
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 10 2005 at 10:51 | IP Logged
|
|
|
Basically what Ive done is implemented all of the external application controls available in the Winamp SDK (I left out some of the ones dealing with skins and such). More functionality can be achieved, but it would require writing a Winamp plugin.
This is what I have so far:
ph_winampctrl() supports these functions:
launch
addlist
playfile
prev
play
pause
stop
next
fadeout
stoptrack
fwd5sec
rew5sec
startlist
endlist
volumeup
volumedown
togglerepeat
toggleshuffle
close
clearlist
seek
writelist
seeklist
setvolume
setpanning
restart
seekpercent
shuffleset
shuffleclear
repeatset
repeatclear
ph_winampinfo() supports these functions:
title
titlenum
version
status
trackpos
tracklen
listlen
listpos
tracksamplerate
trackbitrate
tracknumchannels
trackpercent
shuffle
repeat
Let me know what you think and what you think is missing. It may be something I can add without having to go the route of a plugin .
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 10 2005 at 11:24 | IP Logged
|
|
|
I think that is pretty comprehensive!
The only thing that I think I would miss would be album art, which could be covered by a ph_winampinfo() function for current track directory/path, or something like that.
Bonus Question: Does the SDK support randomizing a playlist? The current app that I use does not.
Thanks, Dave!
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 10 2005 at 22:55 | IP Logged
|
|
|
Aghhh!! That is one thing that the SDK does not expose (current track filename/path) without resorting to a plugin (I tried my best to bend the rules ).
Actually the SDK does expose getting the current track path/filename (actually, it gets the path/filename of a playlist item, but you could get the number of the current title and then look up the appropriate playlist item) but only to in-process processes...in other words, a plugin .
I'll look into what would be involved in actually creating a plug-in and hopefully it wont be too bad.
Concerning randomizing...the SDK does not directly have any support for randomizing a playlist. You could turn "shuffle" on and then load a playlist which should effectively randomize it for you. Were you looking for something different?
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 10 2005 at 23:41 | IP Logged
|
|
|
Hmm. The browseamp site has source code for plugins...
For those of you that are interested in creating their own plug-in for Winamp, here is a Class for C++ Builder that provides the most important functions to interact with Winamp.
My touch screen Browseamp skin works well, and I can scrape info from the generated HTML.
Regarding shuffle, I've found it to be not random enough.
Thanks, Dave.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 18 2005 at 21:00 | IP Logged
|
|
|
Thats interesting about the shuffle...Ive never really thought about it before but now that you mention it, it is a little lacking.
I definately plan on looking into a Winamp plug-in. It would be handy to know what is the next song coming up in the playlist (Winamp is my player of choice as well).
Dave.
|
Back to Top |
|
|