Hello
I desperately sought a script to put the video stream from my IP camera D-LINK DCS 3420 on a Web page
Can you help me?
thank you
Printable View
Hello
I desperately sought a script to put the video stream from my IP camera D-LINK DCS 3420 on a Web page
Can you help me?
thank you
Here is a code .
Code:<script language="JavaScript">
if (0)
{
}
else
{
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC"))
{
document.write("<OBJECT ID=\"VACtrl\" WIDTH=704 HEIGHT=480 name=\"VACtrl\"");
document.write(" CLASSID=CLSID:1B3F4474-0BCC-436a-8D0D-796C5D5AAB5D");
document.write(" CODEBASE=\"http://192.168.3.98/VatDec.cab#version=1,0,0,7\">");
document.write("<PARAM NAME=\"VSize\" VALUE=\"SIF\">");
document.write("<PARAM NAME=\"Language\" VALUE=\"en\">");
document.write("<PARAM NAME=\"ClickEventHandler\" VALUE=\"3\">");
document.write("<PARAM NAME=\"IgnoreCaption\" VALUE=\"true\">");
document.write("<PARAM NAME=\"IgnoreBorder\" VALUE=\"true\">");
document.write("<PARAM NAME=\"Url\" VALUE=\"http://192.168.3.98/cgi-bin/video.jpg");
document.write("?cam=5&quality=3&size=2\">");
document.write("<PARAM NAME=\"PtzUrl\" VALUE=\"/cgi-bin/control.cgi?cam=2\">");
document.write("</OBJECT>");
}
else
{
document.write("<img src=\"http://192.168.3.98/cgi-bin/video.jpg?cam=5&quality=3&size=2\" \
width=352 height=240>");
}
}
</script>
You can download Script , hope this help .
If you view the page source (by selecting "Source" from the "View" menu on your PC's browser menu bar or "Page source" form the "View" menu on a Mac), you should see some code somewhere on that page that starts with the word "APPLET" like this:
Note: The above code is from displaying my D-Link DCS-900 IP camera (see video stream below--if it takes forever to load, it's because there are too many users on this page and it's crushing my server)Code:<APPLET name="cvcs" CODEBASE="http://192.168.15.6:80/" CODE="xplug.class" WIDTH=320 HEIGHT=240>
<param name="RemotePort" value=80>
<param name="Timeout" value=5000>
<param name="RotateAngle" value=0>
<param name="PreviewFrameRate" value=2>
<param name="DeviceSerialNo" value="">
</APPLET>
For more help see here