How do I create a Java addon for songbird
Hi, I am trying for quite some time to create an addon for songbird and have encountered several issues that occurred because the songbird was not build to support my features. Because of that tried to get into javaxpcom but I had no luck alone so I'm asking you this: How do I create an addon for songbird that uses java?
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Do you mean an Java-Applet, showing in an iframe or something?
That should be possible pretty easy, there is an old Add-on that did this, maybe you can take a look at its source (even if it's outdated): http://addons.songbirdnest.com/addon/47
Or do you mean you want to use Java-Code directly to communicate with the interface?
That's more difficult, you will have to use XPCOM. There are a lots of example for C++, but I never searched for Java. However, it really seems to be complicated.
In any case, if you are trying to develop an add-on, the best place to ask for help is the Songbird Developers Group, there you will get the most helpful answers: http://groups.google.com/group/songbi...
-
Inappropriate?I mean I want to use java code to communicate with the interface.
P.S. I'll look it up in google group but I'll also be happy if someone will answer me in this forum.
I’m frustrated
-
Inappropriate?You can use XULRunner's SDK which includes some Mozilla interfaces for Java in the download. When you follow the examples and specify a "root directory" for initializing XPCOM, you'll want to specify the Songbird directory. The trick is to get the IDL files in Songbird compiled into Java interfaces. This currently isn't done for Songbird as part of the distro (they could do this, and include it in a JAR file). But if you have those interfaces generated, talking to Songbird through XPCOM in Java with XULRunner's SDK should be simple.
-
Inappropriate?PS -- here's some references (you should just need the IDLs compiled with 'xpidl' into Java interfaces, but unfortunately, that's a TON of interfaces, and they don't compile nicely, but at least you have some models of what they should look like in the XULRunner SDK):
http://ladyr.es/wiki/wiki/XPCOMGuide
https://developer.mozilla.org/en/Java...
http://blog.songbirdnest.com/2007/10/...
https://developer.mozilla.org/en/Java...
You could port the following code as an example:
http://jaredforsyth.com/content/songb...
Loading Profile...





CHAMP
