Thanks Diancecht !!!!
It was the window.onload twice that caused the issue...
So instead i called the
window.onload = function() {
image = document.getElementById('idofyourimage');
setInterval("refreshImage()", 1000);
imagecam2 = document.getElementById('idofyourimagecam2')...
What is happening is that only one camera is streaming live and working. The other one is not displaying at all (It displays it for 1 second) and disappears.
Thanks, for your quick response I will remove it out of the TD - but surely that can't be the problem.
Hi,
I've just bought an additional webcam to add to my site. I wanted to create a admin panel where both cameras are streaming on the same web page. Can someone tell me where I have gone wrong ?
<head>
<META HTTP-EQUIV="Refresh" CONTENT="1200;URL=http://localhost/index.php">
</head>
<body>...
The code seems to be caching --- ie; if the snap.jpg is moved or rename it doesnt seem to pick it up...
Should add somewhere
?rnd=" + (newDate()).getTime() + "'>";
//to the end of the jpg to pick up changes ??
or should I add a no-cache to the html ? (it works this way but, I don't need...
Hi guys,
I'm having some trouble executing my script and I'm not sure where I am going wrong.
It for a webcam - The web cam captures 5 images a second and is saved into a directory, (only 5 images) and the 5 images gets over written every 1 second.
The script needs to read in sequential order...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.