Embedding the web cam output : web cam HTML Listing 1 for FTP
The Live Cam is basically an image which is sent via FTP (file transfer protocol) to my web space every 2 seconds. The HTML required for the image sent by the WebCam32 application is as follows, and should be placed where you want the updated image to appear in your web page:
<applet codebase="http://
www.robertwisbey.com/" code="JavaCam.class" width="
320" height="
240">
<br>
<param name="interval" value="
2">
<br>
<param name="url" value=http://
www.robertwisbey.com/webcam32.jpg>
<br>
</applet>
In the HTML listing above, the text in bold are values which you must change in order to match your WebCam32 settings and your web host settings. The URL, http:/
/www.robertwisbey.com/ should be replaced with the URL of your web site's default location for the web page, image, and associated Java applets. The width and height values must match what you have set in the WebCam32 application. The interval value must match the frequency value you have set in the WebCam32 application. Finally the URL
http://www.robertwisbey.com/webcam32.jpg should be replaced with the URL of the image which is sent to your web space.
You will also notice in the HTML that
JavaCam.class is referenced. When you FTP your HTML up to your web space, you will also need to FTP the associated Java applets,
JavaCam.class and
JavaCam.java in the same location as your HTML.
Embedding the web cam output - web cam HTML Listing 2
The following is the HTML listing (listing 2) which you would place in your HTML where you want the image to appear.
<applet code="JavaCamPush.class" codebase="http://
wisbey.dnsalias.com:8888/applet"
archive="JavaCamPush.jar" width="
320" height="
240">
<param name="URL" value="http://
wisbey.dnsalias.com:8888">
<param name="cabbase" value="JavaCamPush.cab">
</applet>
In the HTML listing above, the text in bold are values which you must change in order to match your WebCam32 settings and your IP address or domain alias settings. The address and port number,
wisbey.dnsalias.com:8888 should be replaced with the your IP address or domain name of your Internet connection, and the port number you specified in Webcam32. The width and height values must match what you have set in the WebCam32 application.