[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
RE: mv1000 question
Oh yes, I forgot about that chapter ;)
Is this your entire page or have you got any other components on it? I'm
no=
t expert but it looks like the JavaScript is linked to a button it's
expect=
ing to see on the page??? I don't think it needs the bit of javascript
anyw=
ay to see a basic stream???
I tried the following code which worked first time:
<html>
<head>
<meta http-equiv=3D"Content-Language"
content=3D"en-gb">
<meta name=3D"GENERATOR" content=3D"Microsoft FrontPage
5.0">
<meta name=3D"ProgId"
content=3D"FrontPage.Editor.Document">
<meta http-equiv=3D"Content-Type" content=3D"text/html;
charset=3Dwindows-1=
252">
<title>Camera</title>
</head>
<body>
<OBJECT id=3D"Camera2"
classid=3D"CLSID:C1BAC744-8F0B-11D0-89E7-00C0A8295197"
CODEBASE=3Dhttp://192.168.0.4/push.cab#Version=3D2,0,0,0
STANDBY=3D"Downloading ActiveX Camera Control"
WIDTH=3D320 height=3D240>
<PARAM NAME=3D"URL"
VALUE=3D"http://192.168.0.4/user/ppush2.jpg">
<PARAM NAME=3D"Refresh" VALUE=3D"0">
</OBJECT>
</body>
</html>
You will need to change your IP address again and set the camera number
(in=
the link to the JPEG images).
This will give you a very plain page with just the image stream in it -
you=
can then experiment with adding a button and re-introducing the javascript=
(if you actually want to control stream rate etc from the page)
Paul.
-----Original Message-----
From: Nigel Giddings [mailto:nigel.giddings@xxxxxxx]=20
Sent: 25 May 2003 11:09
To: ukha_d@xxxxxxx
Subject: RE: [ukha_d] mv1000 question
Paul,
I looked at the manual, when all else fails !!, and copied the IE text in
E-2 (appendix) all is working but I get an error message, line 22 char 35
something about expecting J. Any ideas
<SCRIPT LANGUAGE=3D"JavaScript">
=A0=A0=A0=A0=A0 window.onerror =3D null
=A0=A0=A0=A0=A0 agent =3D navigator.userAgent;
=A0=A0=A0=A0=A0 if (agent.indexOf('MSIE') =3D=3D -1=A0 {
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 document.write('
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 <img src=3D"http://192.168.=
5.99/user/ppush1.jpg"
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 ALT=3D"Image=A0=A0=A0
Downl=
oading...">');}
</SCRIPT>
<SCRIPT LANGUAGE=3D"VBScript">
Sub BtnSubmit1_OnClick
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 Camera1.Debug =3D 1
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 Camera1.Refreash =3D -1
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 Camera1.URL =3D URL1.Value
End Sub
Sub Camera1_OnRightClick
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 If Camera1.Stopped then
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0
Camera1.Res=
tart
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 else
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0
Camera1.Sto=
p
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 end if
End Sub
</script>
<OBJECT id=3D"Camera1"
=A0=A0=A0=A0=A0
classid=3D"CLSID:C1BAC744-8F0B-11D0-89E7-00C0A8295197"
=A0=A0=A0=A0=A0 CODEBASE=3Dhttp://192.168.5.99/push.cab#Version=3D2,0,0,0
=A0=A0=A0=A0=A0 STANDBY=3D"Downloading ActiveX Camera Control"
=A0=A0=A0=A0=A0 WIDTH=3D320 height=3D240>
=A0=A0=A0=A0=A0 <PARAM NAME=3D"URL"
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0 VALUE=3D"http://192.168.5.99/user/ppush1.jp=
g">
=A0=A0=A0=A0=A0 <PARAM NAME=3D"Refresh"
VALUE=3D"0">
</OBJECT>
</SCRIPT>
-----Original Message-----
From: Paul [mailto:groups@xxxxxxx]
Sent: 25 May 2003 10:38
To: ukha_d@xxxxxxx
Subject: RE: [ukha_d] mv1000 question
Looking into this a bit more...
If you look at the source of the streaming camera default page on the
MV100=
0
(View then Source) in IE, you will see how the ActiveX control is used.
There is also a bit of Java that communicates with the MV1000 to set stream
rate and can also allow you to control the two relay outputs on the back of
the MV1000 (could be handy!)
Paul.
-----Original Message-----
From: Nigel Giddings [mailto:nigel.giddings@xxxxxxx]
Sent: 25 May 2003 08:39
To: ukha_d@xxxxxxx
Subject: [ukha_d] mv1000 question
I am looking at sending pictures to an intranet page from my mv1000. I am
not much of a web author but do have experience of simple sites in
FrontPage.
Thanks Nigel
Home |
Main Index |
Thread Index
|