Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

¿Javascript Webcam Browser Version?

Status
Not open for further replies.

notfarnow

MIS
May 10, 2005
14
US
Hi! I'm really new with this, but I have the following javascript displaying a webcam on a website, and it only works on Internet Explorer for Windows. I need it to work on other browsers, especially Mozilla (firefox). Any help is very much appreciated.

<script language="JavaScript">
<!--
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC"))
{
document.write("<OBJECT ID=\"VaCtrl\" WIDTH=362 HEIGHT=306");
document.write(" CLASSID=CLSID:A93B47FD-9BF6-4DA8-97FC-9270B9D64A6C");
document.write(" CODEBASE=\"document.write("<PARAM NAME=\"Url\" VALUE=\"document.write("<PARAM NAME=\"VSize\" VALUE=\"SIF\">");
document.write("<PARAM NAME=\"RemoteIP\" VALUE=\"208.57.82.160\">");
document.write("<PARAM NAME=\"RemotePort\" VALUE=\"5001\">");
document.write("</OBJECT>");
}
//-->
</script>
 
Some browsers do not support the Object element. Look into the Embed element to see possible ways around this.

Maybe write to (or look on the web site of) your webcam manufacturer to see if they offer plugins or controls for non-IE browsers.

Hope this helps,
Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top