How do I adjust refresh rate?

G

Guest

Guest
Archived from groups: alt.comp.periphs.webcam (More info?)

Fair warning: It will be obvious reading this that I don't know what
I'm doing. :)

I'm using Webcam2000 to operate a Logitech Quickcam cordless camera,
and using some language I got from a site called easyfreewebcam.com on
the page I'm using to display the image.

The problem is that when the image is viewed, it may only display about
half the image, depending on the connection speed. Is there some way
to change the refresh rate or upload rate so that an image is only
loaded every few seconds?

Or, is there an easier code to use in my display page?

Here's the display page address:

http://www.markcotton.com/webcam2.html
 
G

Guest

Guest
Archived from groups: alt.comp.periphs.webcam (More info?)

It doesn't seem to refresh at all when pull it up. I even tried
changing both "3000" values to 500.
 
G

Guest

Guest
Archived from groups: alt.comp.periphs.webcam (More info?)

Ah, the Google Groups reader I'm using hyphenated the script in a
couple of places.

Now it works perfectly, and I can monkey with the length of refresh
time so my wife can watch the cats from work on her less than
lightning-speed connection.

Thanks Si! You've been extremely helpful. You're the one that turned
me on to Webcam2000 a couple of weeks ago.
 
G

Guest

Guest
Archived from groups: alt.comp.periphs.webcam (More info?)

On 21 May 2005 05:41:56 -0700, "cottonchipper"
<cottonchipper@gmail.com> wrote:

>Fair warning: It will be obvious reading this that I don't know what
>I'm doing. :)
>
>I'm using Webcam2000 to operate a Logitech Quickcam cordless camera,
>and using some language I got from a site called easyfreewebcam.com on
>the page I'm using to display the image.
>
>The problem is that when the image is viewed, it may only display about
>half the image, depending on the connection speed. Is there some way
>to change the refresh rate or upload rate so that an image is only
>loaded every few seconds?
>
>Or, is there an easier code to use in my display page?
>
>Here's the display page address:
>
>http://www.markcotton.com/webcam2.html

The link you give doesn't seem to work right now. Below are some
test pages I have using webcam2000 that might be of interest. You
can view the page sources to see what is being used. The bottom
link uses a java applet setup in the page that has <PARAM
name="interval" value="1"> in it where you can set the interval
between frames in seconds for frame uploads ("1" is one second).
You could try setting the interval to something longer to see if
that helps.

http://www.geocities.com/zoomkat/webcamsetup.htm
http://www.geocities.com/zoomkat/wc2000.htm
http://www.geocities.com/zoomkat/wc20000sw.htm
http://www.geocities.com/zoomkat/wc2000apptest.htm
 
G

Guest

Guest
Archived from groups: alt.comp.periphs.webcam (More info?)

On 21 May 2005 05:41:56 -0700, "cottonchipper"
<cottonchipper@gmail.com> wrote:

>Fair warning: It will be obvious reading this that I don't know what
>I'm doing. :)
>
>I'm using Webcam2000 to operate a Logitech Quickcam cordless camera,
>and using some language I got from a site called easyfreewebcam.com on
>the page I'm using to display the image.
>
>The problem is that when the image is viewed, it may only display about
>half the image, depending on the connection speed. Is there some way
>to change the refresh rate or upload rate so that an image is only
>loaded every few seconds?
>
>Or, is there an easier code to use in my display page?
>
>Here's the display page address:
>
>http://www.markcotton.com/webcam2.html

I've done some tinkering and the below web page setup might be of
use. Copy the page source below the ====== line, paste in
notepad, and save as test.htm. Then double click on the test.htm
and see if it works for a 3 (3000) second update. I think the
lines in your pix are due to a cam sync issue that may not be
completely fixed with slowing the refrresh interval. You can vary
the seconds to see what happens.

========================================

<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<script language="JavaScript">
function refreshIt() {
if (!document.images) return;
document.images['myCam'].src =
'http://216.31.21.30:8080/stream.jpg?' + Math.random();
setTimeout('refreshIt()',3000);
}
</script>
<title>My demo web cam page</title>
</head>
<body onLoad=" setTimeout('refreshIt()',3000)">
Here it is


<img border="0" src="http://216.31.21.30:8080/stream.jpg?"
name="myCam">


The image will refresh every 3 seconds
</body>
</html>
 
G

Guest

Guest
Archived from groups: alt.comp.periphs.webcam (More info?)

On 21 May 2005 09:49:43 -0700, "cottonchipper"
<cottonchipper@gmail.com> wrote:

>It doesn't seem to refresh at all when pull it up. I even tried
>changing both "3000" values to 500.

You have two problems. The first is that 500 (.5 sec) is too
short of an interval for use over the net, as a new frame is
requested before the first is completed. The second is that you
broke the java script by adding a "-" after the time interval.
You used " 500)-; " and " 500)-> " instead of " 500); " and "
500)> ". Take out the dashes and lengthen the interval to at
least 2000 (that seems to work here) and see if it works.