Video embedded in customers’ homepage – Vivotek IP2121 User Manual

Page 51

Advertising
background image

- 49 -

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=240");
document.write(" CLASSID=\"CLSID:EAA105FE-7BBD-4196-8B96-D46743894195
\" ");
document.write("CODEBASE=\"http://username:[email protected]/plugin
/mjpegcontrol.cab#version=1,0,0,4\">");
document.write("<PARAM NAME=\"VSize\" VALUE=\"2\">");
document.write("<PARAM NAME=\"Url\" VALUE=\"http://username:password@
192.168.0.201/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://192.168.0.201/cgi-bin/video.jpg?cam=1&quality=3

&size=2\">");
}
//-->
</script>
</body>
</html>

Advertising