Hello,
I want to display the video stream of IP camera two on my website. For this I use the following script:
<script language="JavaScript" type="text/javascript">
// <![CDATA[
if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC")) {
document.write("<OBJECT ID=\"RtspVapgCtrlMulti\" WIDTH=400 HEIGHT=300 name=\"RtspVapgCtrlMulti\"");
document.write(" CLASSID=CLSID:73888E2B-FF04-416C-8847-984D7FC4507F");
document.write(" CODEBASE=\"http://000.000.000.000/RtspVaPgDecNew2.cab\">");
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=\"Url\" VALUE=\"http://000.000.000.000:8080/cgi-bin/control.cgi\">");
document.write("<PARAM NAME=\"ViewStream\" VALUE=\"0\">");
document.write("</OBJECT>");
} else {
document.write("<OBJECT ID=\"quicktime\" WIDTH=400 HEIGHT=300 name=\"quicktime\"");
document.write(" CLASSID=CLSID:02bf25d5-8c17-4b23-bc80-d3488abddc6b\">");
document.write("<embed scale=\"ToFit\" width=\"400\" height=\"300\" type=\"video/quicktime\" qtsrc=\"rtsp://000.000.000.000/live.sdp\"src=\"http://000.000.000.000:5555/realqt.mov\" qtsrcdontusebrowser autoplay=\"true\" controller=\"true\" />");
document.write("</OBJECT>");
}
// ]]>
</script>
<script language="JavaScript" type="text/javascript">
// <![CDATA[
if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC")) {
document.write("<OBJECT ID=\"RtspVapgCtrlChouette\" WIDTH=400 HEIGHT=300 name=\"RtspVapgCtrlChouette\"");
document.write(" CLASSID=CLSID:73888E2B-FF04-416C-8847-984D7FC4507F");
document.write(" CODEBASE=\"http://000.000.000.000/RtspVaPgDecNew2.cab\">");
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=\"Url\" VALUE=\"http://000.000.000.000:8082/cgi-bin/control.cgi\">");
document.write("<PARAM NAME=\"ViewStream\" VALUE=\"0\">");
document.write("</OBJECT>");
} else {
document.write("<OBJECT ID=\"quicktime\" WIDTH=400 HEIGHT=300 name=\"quicktime\"");
document.write(" CLASSID=CLSID:02bf25d5-8c17-4b23-bc80-d3488abddc6b\">");
document.write("<embed scale=\"ToFit\" width=\"400\" height=\"300\" type=\"video/quicktime\" qtsrc=\"rtsp://000.000.000.000/live.sdp\"src=\"http://000.000.000.000:5557/realqt.mov\" qtsrcdontusebrowser autoplay=\"true\" controller=\"true\" />");
document.write("</OBJECT>");
}
// ]]>
</script>
By cons I have a problem with the Mozilla browser with port 554. I can only see my video if I change the port number. I can change the configuration of my camera Vivotek in my NAT rules to open the port number, but it does not work.
Do you have an idea for me?