8.4. How to use ActiveX Control by HTML
If write the next code in <Body> of HTML source code, It comes to be able to use ActiveX in HTML.
JPEG Viewer
<OBJECT ID="JPEGViewer" |
|
WIDTH = 640 |
|
HEIGHT= 480 |
|
| |
CODEBASE="./v686.cab#version=1,0,0,9" | |
<PARAM NAME="IP" | VALUE="192.168.0.2"> |
<PARAM NAME="HttpPort" | VALUE="80"> |
<PARAM NAME="DispWidth" | VALUE="640"> |
<PARAM NAME="DispHeight" | VALUE="480"> |
<PARAM NAME="FrameRate" | VALUE="15"> |
<PARAM NAME="StreamType" | VALUE="0"> |
<PARAM NAME="OpPassword" | VALUE="jvc"> |
</OBJECT> |
|
MPEG-4 Viewer
<OBJECT ID="MPEG4Viewer" WIDTH = 640 HEIGHT= 480
<PARAM NAME="IP" | VALUE="192.168.0.2"> |
<PARAM NAME="HttpPort" | VALUE="80"> |
<PARAM NAME="DispWidth" | VALUE="640"> |
<PARAM NAME="DispHeight" | VALUE="480"> |
<PARAM NAME="StreamType" | VALUE="0"> |
<PARAM NAME="OpPassword" | VALUE="jvc"> |
</OBJECT> |
|
PTZ Control Client
<OBJECT ID="PTZCtrl"
WIDTH = 1
HEIGHT= 1
CLASSID="CLSID:877CBEB7-33CA-44c4-AC85-D7EDC55D059"
CODEBASE="./v686.cab#version=1,0,0,9"
<PARAM NAME="IP" | VALUE="192.168.0.2"> |
<PARAM NAME="HttpPort" | VALUE="80"> |
<PARAM NAME="Opssword" | VALUE="jvc"> |
</OBJECT> |
|
How to get CLASSID and ODEBASE
(i) CLASSID
CLASSID of ActiveX is described in the set up information file (Extension *. inf) included in the cabinet file (Extension *.cab) that stores ActiveX downloaded in Chapter 8.1.