Wireless IP camera,

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baalan
    New Member
    • Feb 2007
    • 2

    Wireless IP camera,

    Hello ppl, I have question, I bought an IP camera, and I want to display the camera's view on my own GUI. but the IP camera built for web server, how should bring it to my own GUI. I have some javascript source but i dont know how to bring it in to java to display in my GUI. could you please help me with this problem

    here is ther source code of javascript
    Code:
    <APPLET name="CVCS" CODEBASE ="http://192.168.1.125:80/" CODE="xplug.class" WIDTH=320 HEIGHT=240>
    	 <param name ="RemotePort" value=8481>
    	 <param name ="Timeout" value =5000>
    	 <param name ="RotateAngle" value=0>
    	 <param name ="PreviewFrameTate" value=2>
    	 <param name ="DeviceSerialNo" value="">
    	 </APPLET>
    it is possible to convert to java. could you please eamil me the code in java. Thanks
    regard
    Baalan
    Last edited by Nepomuk; Feb 11 '09, 11:32 PM. Reason: Please use [CODE] tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to The Scripts.

    If it's an applet, it's not Javascript, but Java. You have a class xplug.class. I'll move this to the Java forum where you might get more help.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by baalan
      Hello ppl, I have question, I bought an IP camera, and I want to display the camera's view on my own GUI. but the IP camera built for web server, how should bring it to my own GUI. I have some javascript source but i dont know how to bring it in to java to display in my GUI. could you please help me with this problem

      here is ther source code of javascript
      Code:
      <APPLET name="CVCS" CODEBASE ="http://192.168.1.125:80/" CODE="xplug.class" WIDTH=320 HEIGHT=240>
           <param name ="RemotePort" value=8481>
           <param name ="Timeout" value =5000>
           <param name ="RotateAngle" value=0>
           <param name ="PreviewFrameTate" value=2>
           <param name ="DeviceSerialNo" value="">
           </APPLET>
      it is possible to convert to java. could you please eamil me the code in java. Thanks
      regard
      Baalan
      That code cannot be converted to Java. It is HTML code that calls an applet whose class name is xplug.class. I'm not really sure what you are trying to do here but I think you are better to ask the guys who gave you that code how you are supposed to be using it.
      Last edited by Nepomuk; Feb 11 '09, 11:33 PM. Reason: Added [CODE] tags to the quote

      Comment

      • baalan
        New Member
        • Feb 2007
        • 2

        #4
        I am really sorry for late response. anyway here is the whole program could please help, how to write these in to java and display in my own GUI.
        thanks best regards
        Baalan
        Code:
        <html>
        <head>
        <style type=text/css>
        .Devtext {font-family: "Arial", "Helvetica", "sans-serif"}
        .maintext {font-family: "Arial", "Helvetica", "sans-serif";font-size: 12px;}
        .spacetext {font-size: 10px;}
        .buttontext {font-size: 6px;}
        .blue {background-color: #b6caf0;font-family: "Arial", "Helvetica", "sans-serif";font-size: 12px;font-weight: bold;}
        </style>
        </head>
        
        <SCRIPT LANGUAGE="JavaScript">
        function Init() {
            if ((navigator.appName != "Netscape") &&
                (navigator.userAgent.indexOf('Opera') == "-1"))
            {
               window.setInterval("ShowFrameRate()", 1000)
            }
        }
        
        function ShowFrameRate() {
            if (1)
            {
               var fFrameRate = cvcs.GetFrameRate()
               window.status = "Frame:" + fFrameRate.toString() + " fps"
            }
            cvcs.GetRealTimeData() 
            CurrentTime.innerHTML = cvcs.GetTimeString()
        }
        </SCRIPT>
        
        <body bgcolor="#C3CBD0" topmargin=0 onload="Init()">
        <form action="/Jview.htm" method="POST">
        <table width="100%" border=0 cellspacing=0 cellpadding=0>
        <tr><td><img src="LOGO.jpg" width="1022" height="124" border=0 usemap="#Map2" usemap="#Map2"></td></tr>
        <tr>
          <td>
            <table width="765" border=0 cellpadding=0 cellspacing=0>
            <tr>
              <td width="133" valign="top" bgcolor="#C3CBD0">
                <table width="100%" border=0 align=center cellpadding=3 cellspacing=0>
                <tr><td valign="top"><div align=center><img src="Device.jpg" width="133" height="120"></div></td></tr>
                <tr><td align="center" class=Devtext><b>DCS-G900</b></td></tr>
                <tr>
                  <td align="center"><a href="Home.htm" target="_top"><img src=Home.jpg border=0></a></td>
                </tr>
                </table>
              </td>
              <td width="2" background="down_03.jpg"><p><img src="down_03.jpg"></p></td>
              <td width="610" valign="top" align="center" bgcolor="#C3CBD0"><!-- ¥H¤U¬O¥[¤J¤º®e±Ò©l°Ï¡I-->
                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
                <tr>
                  <td bgcolor=black><font color=white>imr_Camera<br>carleton</font></td>
                  <td bgcolor=black align=right valign=top>&nbsp;&nbsp;<font color=white><SPAN ID="CurrentTime"></SPAN></font></td>
                </tr>
                <tr>
                  <td colspan=2 align=center bgcolor="#C3CBD0">
                    <APPLET name="cvcs" CODEBASE="http://134.117.58.55:80/" CODE="xplug.class" WIDTH=160 HEIGHT=112>
                    <param name="RemotePort" value=80>
                    <param name="Timeout" value=5000>
                    <param name="RotateAngle" value=0>
                    <param name="PreviewFrameRate" value=2>
                    <param name="DeviceSerialNo" value="YWRtaW46Z3JvdXA=">
                    </APPLET>
                  </td>
                </tr>
                </TABLE>
              <!--¥H¤W¬Oµ²§À°Ï¡I--></td>
            </tr>
            </table>
          </td>
        </tr>
        </table>
        </form>
        </body>
        </html>
        
        <map name="Map2">
          <area shape="rect" coords="6,6,175,60" href="http://www.dlink.com" target="_blank">
        </map>
        Last edited by Nepomuk; Feb 11 '09, 11:32 PM. Reason: Please use [CODE] tags

        Comment

        • nkgawa
          New Member
          • Mar 2007
          • 1

          #5
          I am using Wireless IP camera and xplug.class on my homepage.
          adress is http://www1.kamakurane t.ne.jp/ajisai/
          this page is by japanese but source of this page may give you some information.
          sorry poor english.

          Comment

          Working...