Sony SNC-RZ30 Snowshoes User Manual


 
3.3 The sample codes for calling the Java applet of the camera control panel
The SNC-RZ30 uses Java applet for the camera control panel to control Pan, Tilt, Zoom, and Focus.
This is named as the archive "CControl.jar" or "CControl2.jar" and is located in /home/l2/ directory in
the SNC-RZ30 web server. This chapter provides the sample codes to load the camera control
panel.
The Java applet of the camera control panel need to be selected properly by the client PC
environment. The sample codes as follows provides the way to determine which applet is to be
selected and load the appropriate applet to control the Pan, Tilt, Zoom, and Focus. Refer to the
"Supplementary 1" of chapter 3.1 about the way to describe <IP>. The sample codes use the
background color of #4B6EB6 to correspond to the color of the panel.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML LANG="EN">
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<TITLE>Camera Control</TITLE>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function CControl()
{
an = navigator.appName;
document.open();
if( an != "Microsoft Internet Explorer"){
document.write("<APPLET CODEBASE='<IP>/home/l2/' CODE='cameracontrol.Controler.class' ARCHIVE='CControl.jar'");
}
else{
document.write("<APPLET CODEBASE='<IP>/home/l2/' CODE='cameracontrol.Controler.class' ARCHIVE='CControl2.jar'");
}
document.write(" WIDTH=160 HEIGHT=255 HSPACE=0 VSPACE=0 ALIGN='top'>");
document.write("<\/APPLET>");
document.close();
}
//-->
</SCRIPT>
</HEAD>
<BODY bgcolor="#4B6EB6">
<SCRIPT TYPE="text/javascript">
<!--
CControl();
//-->
</SCRIPT>
</BODY>
</HTML>