Plug-In for live video help needed

F

Frank Smith

I have a D-Link DCS-1000w Internet camera and would like to put the video on
a web page.
DLink provides the OCX "xplug.ocx" but I cannot make it work.
Their code looks like this:

<html>
<SCRIPT LANGUAGE="JavaScript">
function Init() {
cvcs.RemoteHost = "24.238.230.91"
cvcs.RemoteWeb = 85
cvcs.RemotePort = 8485
cvcs.Timeout = 5
cvcs.AuthType = 1
cvcs.PreviewFrameRate = 1
cvcs.PreviewWidth = 320
cvcs.PreviewHeight = 240
cvcs.DeviceSerialNo = ""
window.setInterval("ShowFrameRate()", 1000)
}
function ShowFrameRate() {
if (1)
{
var fFrameRate = cvcs.FrameRate
window.status = "Frame:" + fFrameRate.toString() + " fps"
}
cvcs.Play()
cvcs.GetRealTimeData()
CurrentTime.innerHTML = cvcs.TimeString
}
</SCRIPT>

<BODY text=white onload="Init()" onunload="cvcs.Stop()">
<OBJECT ID="cvcs" WIDTH=320 HEIGHT=240
CLASSID="CLSID:31150A86-0BBA-409f-BEB4-F3922D10BF34"
CODEBASE="xplug.ocx#version=2,0,0,0">
</OBJECT>
</body>
</html>

I have loaded xplug.ocx to the web site and the URL & Port above is valid
for my camera.

the page can be seen at www.czechcenter.org/camera.htm

Any hints?
 
C

Chris Leeds, MVP-FrontPage

I even took the little dLink plug-in to try it.
I'm seeing two "players" on the page, both the object and the embedded one.
are you sure the camera is on and open to the internet?

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
 
F

Frank Smith

One thing I have noticed is that if you look at the Source code on the web
site there is all sorts of code added (I guess by FP) ahead of and behind
the code that is below.
On my desktop the code is exactly as below but not the same on the web....
 
C

Chris Leeds, MVP-FrontPage

got a JavaScript error on line 33 (time undefined).
I didn't see any code that looks like it was added by FrontPage.

could you enumerate the steps you've taken to put this "player" on the page?

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
--
 
F

Frank Smith

Copied in their code, changed the IP address to my valid one, added their
plug-in to the page, published both the page and the xplug.ocx
First time running, XP Home asked me if I wanted to install Active-X
plug-in, said "Yes".
 
C

Chris Leeds, MVP-FrontPage

ok, but _how_ did you add their code to the page?

you may want to do it again. delete the page that's not working, then set
your cursor in a new page and hit insert/ web component/ advanced control/
html mark-up.
paste the code in that dialog box. Then republish.

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
--
 
C

Chris Leeds, MVP-FrontPage

you can't be doing it right because there are two body tags and I'm still
getting that JavaScript error about the current time. also a frame rate of
0fps.

what exactly, did the manual you got with the camera say to do, and do you
have the example code they provided?

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
--
 
F

Frank Smith

Found another code set for another D-Link camera, works fine

<APPLET name="cvcs" CODEBASE="http://24.238.230.91:85/"
CODE="xplug.class" WIDTH=320 HEIGHT=240>
<param name="RemotePort" value=85>
<param name="Timeout" value=5000>
<param name="RotateAngle" value=0>
<param name="PreviewFrameRate" value=2>
<param name="DeviceSerialNo" value="Y3plY2g6Y2VudGVy">
</APPLET></td>

Thanks for all your efforts,
Frank
 
C

Chris Leeds, MVP-FrontPage

it'll only work fine with people using Java (not the same as JavaScript).
there are lots of computers out there without JVM (the Java Virtual
Machine). it's that reason that "hover buttons" are generally discouraged.
IOW: not everyone will see your feed.

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Java help needed... 5

Top