The Graveyard - Products No Longer Supported > DCS-910

Embed DCS-910 Video into My Web Page

<< < (2/3) > >>

davem:
Hmm.... Keep getting error about the xplug.class file not being found, etc.  Starting to wonder if this camera really even works in the scenario..

Dave

davem:
Still no luck with this...

Can anyone provide some additional suggestions with this?

I'm simply trying to embed a link to the video for the camera from a web site (which is hosted on a windows platform).

When attempting to use the xplug.class file (which I've uploaded to the site), I get a "class not found exception".

I'm certain that someone has navigated this minefield before and would appreciate some suggestions.

Thanks!

Dave

kandm00:
You can't link directly to the video.  You need to create a new web page with the Java video applet.  Since you can view the D-Link video page all you need to do is go to the D-Link Java video page for your camera (preferably from a public ip address), view the html source for the page, copy the source and save it to a new html file, and remove all the extra interface junk you don't want in the html code.  Just make sure the CODEBASE parameter in the APPLET tag is set to the public ip address (or dynamic dns domain) and port of the camera because you want it to load xplug.class from the camera.

Here's the stripped down code from a DCS-920 (the wireless version of the DCS-910) with just the video applet.  Should be the same as the DCS-910, but you can compare it to your camera's html/javascript code if it doesn't work.

You need to replace the IP address of the camera in the code below (192.168.2.111:80) with the public ip address and port of your camera.  If you have a dynamic dns name you can use that instead of the public ip address.


--- Code: ---<html>
<head>
<title>CAMERA</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</head>
<body>
    <APPLET name="cvcs" CODEBASE="http://192.168.2.111:80/" CODE="xplug.class" WIDTH=640 HEIGHT=480>
    <param name="RemotePort" value=80>
    <param name="Timeout" value=5000>
    <param name="RotateAngle" value=0>
    <param name="PreviewFrameRate" value=2>
    <param name="DeviceSerialNo" value="">
    </APPLET>
</body>
</html>
--- End code ---

davem:
That did the trick!  Thanks so much.

The thing that I had wrong in my testing was the IP address for CODEBASE.  Now I understand that it must point to the public IP address of the camera.   

Thanks again!

Dave
 :)

bhedrick:
I am also having difficulty embedding the live video into a custom web page.  Using the above code with the proper IP works great, but I can't change the size of the video.  Adjusting the Width/Height only changes the display area.  If I adjust the size in the settings on the camera's page it changes the video on the custom page as well.  I would like to prevent the size from changing on my custom page.  Is there anyway to do this?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version