SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2000
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We have a web-based camera system with the following problem:

    The camera web-transmitter box on the LAN ethernet is delivering 4 "live" pictures to a video-server PC. But the connection seems to be unstable resulting in loss of camera video.

    Her is the javascript (running on the web-transmitter box) which is updating the html mjpeg picture:

    <TABLE BORDER="0" CELLPADDING="2" CELLSPACING="0" BGCOLOR="GRAY">
    <TR>
    <TD width='176' height='136' >
    <A href="http://10.0.0.75/camera1.htm">
    <SCRIPT LANGUAGE="JavaScript">
    <!--//hide script

    if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform != "Mac68k"))
    {
    document.write("<OBJECT ID='SNS100' WIDTH='176' ");
    document.write(" HEIGHT='136' CLASSID=CLSID:012F24D4-35B0-11D0-BF2D-0000E8D0D146 ");
    document.write(" CODEBASE='http://10.0.0.75/sns100.ocx' >");
    document.write("<PARAM NAME=URL VALUE='http://10.0.0.75/nph-cam1.cgi' >");
    document.write(" <BR><B>SNS100 ActiveX Camera Control</B><BR>");
    document.write("In order to install the SNS100 ActiveX Camera Control, which enables you to view live video");
    document.write(" in Microsoft Internet Explorer, you must temporarily lower your browser security settings to medium and allow for installation.<BR>");
    document.write("</OBJECT>");
    }
    else
    {
    document.write("<IMG name='camerapush' SRC='http://10.0.0.75/nph-cam1.cgi' ");
    document.write(" HEIGHT='136' WIDTH='176' ");
    document.write(" align='center' border='0' alt='' >");
    }
    //end hide --></SCRIPT> </A>
    </TD>
    <TD width='176' height='136' >


    Can you help me with this problem ?

    Martin Appel


  2. #2
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is your problem with this code? I can see a few possiblities, but what is it not doing for you that you want it to do?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •