|
| Author |
Message |
JimInMry New Member
Joined: 17 Aug 2006 Posts: 3
|
Posted: Fri Oct 13, 2006 1:34 pm Post subject: IPCAMW50 in webpage |
|
|
I am trying to add the video of my IPCAMW50 to a webpage. Using the Java Script below I get the frame and then a "Failed to connect to server" error.
If I go to the URL http://192.168.1.11:8081/cgi-bin/video.vam I get a login prompt and then the raw stream so I think I am just missing the login or username but don't know the format or param name to use.
Thanks Jim
<script language="JavaScript">
<!--
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC"))
{
document.write("<OBJECT ID=\"VAMCtrl\" WIDTH=362 HEIGHT=306");
document.write(" CLASSID=CLSID:A93B47FD-9BF6-4DA8-97FC-9270B9D64A6C");
document.write(" CODEBASE=\"http://192.168.1.11:8081/plugin/h263ctrl.cab#version=2,0,0,10\">");
document.write("<PARAM NAME=\"VSize\" VALUE=\"SIF\">");
document.write("<PARAM NAME=\"RemoteIP\" VALUE=\"184658112\">");
document.write("<PARAM NAME=\"RemotePort\" VALUE=\"5001\">");
document.write("<PARAM NAME=\"RemoteID\" VALUE=\"19242\">");
document.write("<PARAM NAME=\"DigitalZoomEdit\" VALUE=\"true\">");
document.write("<PARAM NAME=\"DisplayTimeFormat\" VALUE=\"1\">");
document.write("<PARAM NAME=\"Deblocking\" VALUE=\"true\">");
document.write("<PARAM NAME=\"Language\" VALUE=\"EN\">");
document.write("<PARAM NAME=\"Url\" VALUE=\"http://192.168.1.11:8081/cgi-bin/video.vam\">");
document.write("</OBJECT>");
}
//-->
</script>
|
|
| Back to top |
|
 |
Administrator Site Admin
Joined: 15 Feb 2005 Posts: 907
|
Posted: Sat Oct 14, 2006 11:00 am Post subject: |
|
|
You will need to add the username and password to this line:
document.write("<PARAM NAME=\"Url\" VALUE=\"http://192.168.1.11:8081/cgi-bin/video.vam\">");
You can do that by changing it to:
document.write("<PARAM NAME=\"Url\" VALUE=\"http://username:password@192.168.1.11:8081/cgi-bin/video.vam\">");
Where the username is your camera username and the password is the camera password. So if you created a username called demo with the password demo, the line would look like this:
document.write("<PARAM NAME=\"Url\" VALUE=\"http://demo:demo@192.168.1.11:8081/cgi-bin/video.vam\">");
Hope that helps!  _________________ Administrator
NetworkCameraReviews.com
www.networkcamerareviews.com
|
|
| Back to top |
|
 |
JimInMry New Member
Joined: 17 Aug 2006 Posts: 3
|
Posted: Sat Oct 14, 2006 2:37 pm Post subject: |
|
|
Thanks Wes,
I have seen code with the username:password unfortunately I have tried adding it and haven't gotten it to work.
As I said browsing to http://192.168.1.11:8081/cgi-bin/video.vam produces the raw stream with no password prompt however adding username (root or demo) and password@ to the url returns a page not found. Maybe it performs differently within the JavaScript but seems like a clue. Double and triple checked the username and password.
Any other thoughts?
|
|
| Back to top |
|
 |
Administrator Site Admin
Joined: 15 Feb 2005 Posts: 907
|
Posted: Mon Oct 16, 2006 7:19 pm Post subject: |
|
|
Is your camera available over the Internet? If so, I can create the script for you and test it to make sure it works. _________________ Administrator
NetworkCameraReviews.com
www.networkcamerareviews.com
|
|
| Back to top |
|
 |
|