Http plugin!

FairDJ is a music jukebox designed for a room with a couple of people in it and one set of speakers. The users rate songs, and the program selects songs so that everybody gets to hear music they like.

Moderators: Marcus, walles

User avatar
Marcus
Site Admin
Posts: 1823
Joined: 2005.04.04 10:52
Location: Stockholm
Contact:

Http plugin!

Postby Marcus » 2006.02.27 02:18

Now you can surf to your Fair DJ! Try out the new http plugin! :)

http://hirt.se/twiki/pub/Main/ScratchPad/httpplugin_0.1.0.jar

To see how it was done, see the source: http://hirt.se:8091/@md=d&cd=//depot/fairdj/plugins/src/se/hirt/fairdj/plugins/http/&c=eBX@//depot/fairdj/plugins/src/se/hirt/fairdj/plugins/http/?ac=83

Here is an example on how to configure the startup script to autostart the plugin:

Code: Select all

       <pluginmanager class="net.sf.fairdj.PluginManagerImpl">
           <url>file:/C:\clients\opensource\fairdj\plugins\bin</url>
           <http startonload="true">
               <port>80</port>
               <timeout>2000</timeout>
               <toplength>10</toplength>
               <tcpdelay>false</tcpdelay>
           </http>
       </pluginmanager>
 


Note that the plugin directory and/or jar must be on the classpath for FairDJ.

Return to “FairDJ”

Who is online

Users browsing this forum: No registered users and 1 guest