3.4The sample codes for controlling Pan, Tilt, and Zoom

The sample codes as follows deploy the submit buttons to control the Pan and Zoom function of the SNC-RZ30. When realizing the CGI command base control of the SNC-RZ30 without using the camera control panel which is built in the SNC-RZ30 web server, refer to the sample codes below.

<!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="Pragma" CONTENT="no-cache">

<TITLE>CAMERA CONTROL</TITLE> </HEAD>

<BODY>

<CENTER>

<P><H3><B>[ PAN ]</B></H3></P>

<TABLE ALIGN="CENTER" VALIGN="MIDDLE"> <TR>

<TD>

<FORM ACTION="<IP>/command/visca-ptzf.cgi" METHOD=POST> <INPUT TYPE="HIDDEN" NAME="visca" VALUE="8101060103030103FF"> <INPUT TYPE="SUBMIT" VALUE="LEFT "></FORM>

</TD>

<TD>

<FORM ACTION="<IP>/command/visca-ptzf.cgi" METHOD=POST> <INPUT TYPE="HIDDEN" NAME="visca" VALUE="8101060103030303FF"> <INPUT TYPE="SUBMIT" VALUE="STOP"></FORM>

</TD>

<TD>

<FORM ACTION="<IP>/command/visca-ptzf.cgi" METHOD=POST> <INPUT TYPE="HIDDEN" NAME="visca" VALUE="8101060103030203FF"> <INPUT TYPE="SUBMIT" VALUE="RIGHT"></FORM>

</TD>

</TR>

</TABLE>

<P><H3><B>[ ZOOM ]</B></H3></P> <TABLE>

<TR>

<TD>

<FORM ACTION="<IP>/command/visca-ptzf.cgi" METHOD=POST> <INPUT TYPE="HIDDEN" NAME="visca" VALUE="8101040734FF"> <INPUT TYPE="SUBMIT" VALUE="WIDE"></FORM>

</TD>

<TD>

<FORM ACTION="<IP>/command/visca-ptzf.cgi" METHOD=POST> <INPUT TYPE="HIDDEN" NAME="visca" VALUE="8101040700FF"> <INPUT TYPE="SUBMIT" VALUE="STOP"></FORM>

</TD>

<TD>

<FORM ACTION="<IP>/command/visca-ptzf.cgi" METHOD=POST> <INPUT TYPE="HIDDEN" NAME="visca" VALUE="8101040724FF"> <INPUT TYPE="SUBMIT" VALUE="TELE"></FORM>

</TD>

</TR>

</TABLE>

</CENTER>

</BODY>

</HTML>

Page 6
Image 6
Sony SNC-RZ30 manual Sample codes for controlling Pan, Tilt, and Zoom, Titlecamera CONTROL/TITLE /HEAD Body Center