|
|
Multiple Session Example Configuration
To run a multisession, you will need the Session Server. Choose any machine on the local network to be the Session Server:
- Create a new directory (let's say "/export/home/wsaudio")
- Place the wsaudio.jar file inside here.
- Add the jar file to your CLASSPATH
- Edit a new "sessions.properties" text file (Make sure IP are in the Multicast IP range):
conference1=228.2.3.4:1111 conference2=228.2.3.5:1112
- Run: java.com.sonicle.wsaudio.SessionServer (You may name the text file differently and use the -f switch)
You will also need more audio cards on the Sparc machine, or use more sparc machines with one audio card. The following must be done on the Solaris Sparc machines:
- Create a new directory (let's say "/export/home/wsaudio")
- Place the wsaudio.jar and the libwsaudio.so files inside here.
- Add the jar file to your CLASSPATH
- Make sure that your LD_LIBRARY_PATH references the current directory
(if not, issue "LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH")
- In case of multiple audio cards run:
java com.sonicle.wsaudio.LiveEncoder -d /dev/audioxxx -n conference1 java com.sonicle.wsaudio.LiveEncoder -d /dev/audioyyy -n conference2
- In case of multiple machines with single audio cards run:
(machine1) java com.sonicle.wsaudio.LiveEncoder -n conference1 (machine2) java com.sonicle.wsaudio.LiveEncoder -n conference2
- Plug microphones into the audio devices.
Next steps may be done on the same machine or on any other machine in the same network. Because this is the front end server, this machine must be reachable via http from client browsers.
LiveServlet solution
- Make the wsaudio.jar visible to the servlet engine of your http server
- Make sure that the "/servlet" directory is assigned to servlets on your http server.
- Create a new directory inside the html docs directory (let's say /wsaudio)
- Explode the wsapplet.jar inside (obtaining com/sonicle/wsaudio/*.class) or place the jar file and use the ARCHIVE tag.
- Create an index1.html file with the following tags:
<APPLET CODE=com.sonicle.wsaudio.Streams WIDTH="2" HEIGHT="2"> <PARAM NAME=LIVESESSION VALUE=conference1>
</APPLET>
- Create an index2.html file with the following tags:
<APPLET CODE=com.sonicle.wsaudio.Streams WIDTH="2" HEIGHT="2"> <PARAM NAME=LIVESESSION VALUE=conference2>
</APPLET>
- Start your web server
- Use some clients to contact the URL to this index1.html or index2.html file to start hearing the live sessions.
LiveServer solution
- Create a new directory (let's say "/export/home/wsaudio")
- Place the wsaudio.jar files inside here.
- Add the jar file to your CLASSPATH
- Create a root directory for html documents (let's say "/export/home/wsaudio/htdocs")
- Explode the wsapplet.jar inside it (obtaining com/sonicle/wsaudio/*.class) or place the jar file and use the ARCHIVE tag.
- Create an index1.html file with the following tags:
<APPLET CODE=com.sonicle.wsaudio.Streams WIDTH="2" HEIGHT="2"> <PARAM NAME=LIVESESSION VALUE=conference1>
</APPLET>
- Create an index2.html file with the following tags:
<APPLET CODE=com.sonicle.wsaudio.Streams WIDTH="2" HEIGHT="2"> <PARAM NAME=LIVESESSION VALUE=conference2>
</APPLET>
- Run: java com.sonicle.wsaudio.LiveServer -r /export/home/wsaudio/htdocs
- Use some clients to contact the URL to this index1.html or index2.html file to start hearing the live sessions.
|
|