Vivotek IP2112 Security Camera User Manual


 
33
Video Embedded in Customers’ Homepage
In additional to the URL, some scripts should be added to download a plug-in for motion
pictures. The following example simply displays title text and a real-time video window
in Internet Explorer or Netscape. The user name and password should be configured in
advance. Those who are familiar with HTML can easily add more components or rewrite
a more vivid and useful homepage.
<html>
<head><title>Network Camera Sample Page</title></head>
<body>
<h2>Network Camera Sample Page</h2>
<script language="JavaScript">
<!--
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC"))
{
document.write("<OBJECT ID=\"MjpegControl\" WIDTH=352 HEIGHT=288");
document.write("CLASSID=\"CLSID:EAA105FE-7BBD-4196-8B96-D46743894195\" ");
document.write("CODEBASE=\"http://root:<root_spassword>@<IP_Address>/plugin/mjpegcontro
l.cab#version=2,0,0,0\">");
document.write("<PARAM NAME=\"VSize\" VALUE=\"2\">");
document.write("<PARAM NAME=\"Url\"
VALUE=\"http://root:<root’s_password>@<IP_Address>/cgi-bin/video.jpg");
document.write("?cam=1&quality=3&size=2\">");
document.write("</OBJECT>");
} else {
document.write("<img width=352 height=240");
document.write("src=\"http://root:<root_password>@<IP_Address>/cgi-bin/video.jpg?ca
m=1&quality=3&size=2\">");
}
//-->
</script>
</body>
</html>