It is currently Tue Dec 12, 2017 3:35 am


All times are UTC [ DST ]




Post new topic Reply to topic  [ 47 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: AlbumPlayer interface for Add-ons
PostPosted: Sat Mar 17, 2007 12:43 pm 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4755
For developers wanting to develop their own add-ons, there is an interface available.

Required AlbumPlayer V5.3

You can downlad the interface document here (version 9-9-2011):
http://www.albumon.com/attachments/AP_i ... erface.doc

Note 1: The document describes more messages then implemented yet, but it is mentioned which ones are not yet there.

A test program is developed as a guide to use the interface or to be used as starting point. The test program is written using Visual Studio .Net 2008 C#. It requires .Net 2.0 framework to run, standard available in Vista but to be installed on XP.
http://www.albumon.com/attachments/AP_InterfaceTest.zip

.NET framework 2.0:
http://www.microsoft.com/downloads/deta ... laylang=en

Not tested if it works together with the test program but there is a free Visual Studio express edition available (choose c# version):
http://msdn.microsoft.com/vstudio/express/downloads/

If somebody finds the time to test the Visual Studio express edition, please let me know the results.

Any questions? Please post in the forum instead of emailing so anybody can learn of it. :)


Last edited by Peter van der Burg on Mon Jan 16, 2012 6:18 pm, edited 19 times in total.

Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 1:18 pm 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4755
In version 4.8d first steps of new interface are implemented. To be able to use it, there is a new document and a test program. See top of topic for links.


Top
Offline Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 9:25 am 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4755
I found out that win98 can't work with named pipes. Because there are still some win98 users left, I might consider to replace the named pipe interface with socket communication, which would work on win98 too. It will not have any consequences for the message structure.

Or do both!

To be continued.......


Top
Offline Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 10:45 pm 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4755
Carlos (developer CD Art Display) proposed to use Windows Messages, which I thought was not possible. But using WM_COPYDATA message it looks it is possible anyway, so I will investigate this first.


Top
Offline Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 4:01 am 

Joined: Fri Dec 30, 2005 6:05 pm
Posts: 97
Count on me to keep CAD and Screensaver updated! ;)


Top
Offline Profile  
 
 Post subject:
PostPosted: Sun Apr 22, 2007 11:17 am 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4755
Version 4.8e is out now, which replaces the named pipe interface by an xml windows message interface (using WM_COPYDATA).

Document and Test software is updated. See links in top of this thread.


Top
Offline Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 9:30 pm 
User avatar

Joined: Tue Oct 21, 2003 7:59 pm
Posts: 28
Location: Lisse, Netherlands
Nice example !.
Its good documented as well.
I liked the "Any Command" tabpage where I was free to experiment with the defined messages.

I just tried it with VS2005 Team Edition (Dev), running under Windows Vista ultimate and wants to say to other developers that when I was running VS2005 with the administrator account and the Albumplayer with a normal user account, I could not see the replies of AP.
If you startup the AP with the administrator account as well then it works.


Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Apr 24, 2007 5:42 pm 

Joined: Fri Dec 30, 2005 6:05 pm
Posts: 97
Peter,

I can get information sent automatically from AP (when a track is changed) but I can't set a track information like "Rating".

Even the test application failed on set a track information or getting the now playing information when pressing the button.

This is the error, translated in English, I get from your Testing application or mine (in VB6) when I try to set a track information or try to get any data:

"An external call was not made because the application is delivering synchronous calls"

I'm testing in a XP SP2 PC.

In resume, I can receive information from AP but I can "ask" or "set".


Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Apr 24, 2007 10:44 pm 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4755
No problem here.

What might go wrong is that on SendMessage, the AP returns a SendMessage within the message loop. I suspected problems there but because no problem detected I left it that way.

I will investigate. I use Vista, but I think that doesn't make the difference.


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 6:55 pm 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4755
Carlos,

I have sent you a new beta version to check if it helps to solve the problem.


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 7:07 pm 

Joined: Fri Dec 30, 2005 6:05 pm
Posts: 97
Peter,

It seems to be working now with my VB6 test application.

However your "AP_InterfaceTest.exe" still makes AP shows the same error but this time only when it is started.

After "AP_InterfaceTest.exe" is started the error does not show up anymore.


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 7:24 pm 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4755
Then my fixed helped, because it should be fixed on another place too so it will not give the error at startup anymore.


Top
Offline Profile  
 
 Post subject:
PostPosted: Sun May 13, 2007 3:50 pm 

Joined: Tue Jan 16, 2007 11:28 am
Posts: 91
Peter, can you give an estimate when you release the next update containing this fix?


Top
Offline Profile  
 
 Post subject:
PostPosted: Sun May 13, 2007 10:12 pm 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4755
Probably in a week.


Top
Offline Profile  
 
 Post subject:
PostPosted: Thu May 24, 2007 8:42 pm 

Joined: Fri Dec 30, 2005 6:05 pm
Posts: 97
Peter,

I've finished the first CD Art Display build with the new AP interface.

The progress bar seek support is great!

When you have time please take a look:

http://forum.albumon.com/viewtopic.php?t=806

Of course I'll still need to fine adjust one or other procedure since most of them changed.


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 47 posts ]  Moderators: Jan, xblkx, Peter van der Burg Go to page 1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net