Sony SNC-RZ30 manual Script Head, Script Body Html

Page 3

3. Providing sample codes

3.1The sample codes for calling the ActiveX viewer

The ActiveX viewer is the program which can work in the environment of Internet Explorer (ver 5.5 sp2 or higher or ver 6) on Windows 98 / 98SE / NT4.0 / 2000 / Me / XP Operating System.This is named as the archive "SncRz30View.cab" and is located in /home/ directory in the SNC-RZ30 web server. This chapter provides the sample codes to load the ActiveX viewer.

The sample codes are listed below and its brief introduction goes on as follows.

<!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">

<TITLE>ActiveX Viewer</TITLE>

<SCRIPT LANGUAGE="JavaScript1.2" SRC=”<IP>/command/inquiry.cgi?inqjs=sysinfo” TYPE="text/javascript"> </SCRIPT>

<SCRIPT LANGUAGE="JavaScript1.2" SRC=”<IP>/command/inquiry.cgi?inqjs=tcpip” TYPE="text/javascript">

</SCRIPT>

a)

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">

The script for the

<!--

inquiry of parameters

function AViewer(){

 

document.open();

 

document.write("<OBJECT ID='Camera1'");

 

document.write("CLASSID='CLSID:63DF43C2-469A-41F3-B119-17B1ACE8BB34'");

document.write("CODEBASE='<IP>/home/SonySncRz30View.cab' NAME='viewer'>");

document.write("<PARAM NAME='URL' ");

 

document.write("VALUE="+Ip+">");

 

document.write("<PARAM NAME='MOUNT' ");

 

document.write("VALUE="+Mount+">");

 

document.write("<PARAM NAME='RATE' ");

b)

document.write("VALUE="+DefFrameRate+">");

The function

document.write("<\/OBJECT>");

declaration

document.close();

}

 

//-->

 

</SCRIPT>

 

</HEAD>

 

<BODY TEXT="#FFFFFF" BGCOLOR="#000000" ONLOAD="JavaScript:document.viewer.Start();">

<SCRIPT TYPE="text/javascript">

c)

<!--

The scirpt for loading

AViewer();

the ActiveX program

//-->

 

</SCRIPT>

 

</BODY>

 

</HTML>

 

The script for the inquiry of parameters

The ActiveX viewer the SNC-RZ30 provides with needs to get some parameters to start up, so that there need to be some scripts as the sample codes shown in (a). By the scripts shown in the sample codes the following parameters can be obtained.

"URL information"

This is information about the host name or IP address of the host for ActiveX to connect to. "Mount information"

This is information how the SNC-RZ30 installs with the mount type. By this information the ActiveX program can select its display of Motion JPEG images with the mount type as desktop or as ceiling.

"Default frame rate information"

This is information about the frame rate of the ActiveX viewer to get Motion JPEG images.

Image 3
Contents SNC-RZ30 General description Script Body Html HeadScript Script HeadSample codes for calling the Java applet viewer Head Body TEXT=#FFFFFF BGCOLOR=#000000Applet Head Center Body Html Sample codes for controlling Pan, Tilt, and ZoomTitlecamera CONTROL/TITLE /HEAD Body Center Table ALIGN=CENTER VALIGN=MIDDLE TRCGI command list for SNC-RZ30 Pan, Tilt, Zoom, and Focus Version history