offline image after a few minutes?

Questions? Suggestions? Need help? Talk about anything related to Yawcam...
Post Reply
thefamilyt
Posts: 3
Joined: Tue May 08, 2007 6:00 pm

offline image after a few minutes?

Post by thefamilyt »

I finally have my site setup and am using an iframe on the page. everything works great from that aspect, but I am as well as a few of my users are getting an off line image 30 seconds to a few minutes after they connect.

I checked my settings and there are no restrictions. Is this a bug? or does the internet connection have something to do with this?

http://chadt.us/driveway/livecam.html
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

You can change the time the "loading image" is displayed before the "offline image" shows up. By default it is 4 seconds and I have realized that this is to short. I will change this in the next release, but you can make the change yourself quite easily.

As written in another post:
You can change the time the "loading image" is displayed before the "offline image" shows up when the browser doesn't get any data from the webcam. Try this and see if it makes any difference.

Edit the file <yawcam-directory>\stream\template_js.html with a text editor. Look for the code:

Code: Select all

function fixConnectTimeout()
{
   ct_ = setTimeout("showErrorImage();",4000);
}
Replace 4000 with 30000
(4000 is 4000ms that is 4 seconds. 30000 is 30 seconds.)
Set the value to for example a minute or what you feel is suitable.

/malun
Post Reply