|
|
Single Session Example Configuration
To make everything operational quickly with just one live session, you may use default settings. You will just need the LiveEncoder and the Front end, without the Session Server.
The following must be done on the Solaris Sparc or Win32 machine:
- Create a new directory (let's say "/export/home/wsaudio" or "C:\wsaudio").
- Place the wsaudio.jar and the libwsaudio.so files inside here.
- Add the jar file to your CLASSPATH.
- On Solaris make sure that your LD_LIBRARY_PATH references the directory containing the native library
(if not, issue "LD_LIBRARY_PATH=/export/home/wsaudio:$LD_LIBRARY_PATH;
export LD_LIBRARY_PATH").
- On Win32 make sure that your PATH references the directory containing the native library
(if not, issue "set PATH=C:\wsaudio;%PATH%").
- For a 14.4 default session run: java com.sonicle.wsaudio.LiveEncoder
For a 28.8 default session run: java com.sonicle.wsaudio.LiveEncoder -n default28
(On Solaris the default device is /dev/audio. if your device has a different name, use the -d switch). (On Win32 the default device is the primary audio device).
- Plug a microphone into the audio device.
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 index.html file with the following tags:
<APPLET CODE=com.sonicle.wsaudio.Streams WIDTH="2" HEIGHT="2"> <PARAM NAME=LIVESESSION VALUE=default>
</APPLET> (use default28 for a 28.8 quality session)
- Start your web server
- Use some client to contact the URL to this index.html file to start hearing the live session.
LiveServer solution
- Create a new directory (let's say "/export/home/wsaudio" or "C:\wsaudio").
- Place the wsaudio.jar file inside here.
- Add the jar file to your CLASSPATH.
- Create a root directory for html documents. (let's say "/export/home/wsaudio/htdocs" or "C:\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 index.html file with the following tags:
<APPLET CODE=com.sonicle.wsaudio.Streams WIDTH="2" HEIGHT="2"> <PARAM NAME=LIVESESSION VALUE=default>
</APPLET> (use default28 for a 28.8 quality session)
- On Solaris Run: java com.sonicle.wsaudio.LiveServer -r /export/home/wsaudio/htdocs
- On Win32 Run: java com.sonicle.wsaudio.LiveServer -r C:\wsaudio\htdocs
- Use some client to contact the URL to this index.html file to start hearing the live session.
|
|