Documentation
On server side
On client side
On server side
- Requirements
A computer with JDK 1.4, Java Media Framework (JMF) 2.1.1 and a servlet 2.3 web container
- Installation
- Install JDK/JRE 1.4 from http://java.sun.com/j2se/1.4/
- Install JMF 2.1.1 from http://java.sun.com/products/java-media/jmf/. You must install JMF Performance Pack not the Cross-platform version
- Detect the capture devices (you should do this step every time you add/remove a capture device). To do that, run JMFRegistry from the JMF, go to "Capture Devices" tab and click "Detect capture devices". You could also check if the capture device is working under JMF using JMFStudio.
- Install a web container (for example Tomcat 4.0).
- Deploy the webcam.war file on the web container. For Tomcat, you can simply put webcam.war in webapps directory.
- Running
When you start the web container, the settings window will appear. You can choose the capture device, the format (usually you will choose RGB 16 or 24 bits), and the delay in milliseconds (the amount of time between grabbing two consecutive images from the web camera). Press OK, and a new window will show up. For the moment, the window is blank; it will display the grabbed images when at least one client is active.
On client side
- Requirements:
- A MIDP 1.0 device or a Personal Java 1.0 device. For PDAs with PalmOS 3.5 or later you can download a MIDP-compatible JVM from here.
- A PocketPC or PocketPC 2002 with .NET Compact Framework 1.0 (it can be downloaded from here) or PocketPC 2003 (it already includes .NET Compact Framework 1.0).
- Running
You have to launch the client in a device-specific way. In the beginning, a list with three options will appear:
- View webcam
Display the images from the webcam with the possibility to save the current image.
- View images
You will see a list of saved images, you can visualize or delete them.
- Settings
The settings are:
- Size - The image will be scaled to fit into the size you have provided. If you choose "Constrain proportions", the image will be scaled proportionally
- Encoding (only on MIDP clients) - you can choose among JPEG, PNG 24, PNG 8 or PNG Grayscale
Usually you will choose PNG, according to your screen type (grayscale or colors, bit depth). For Personal Java and PocketPC , you don't have this possibility (it's automatically set to JPEG).
- Time display - if you want to display the time in the down-left corner of the images, and what size the font should have.
- URL - the URL of the webcam server