I have a problem to 'continuously refresh' the picture which is captured from my camera every 1 second. Right now the picture only changes to the last picture taken by the camera. Any ideas how to make this work????
function reflashIPCam(){
newImage = new Image();
newImage.src = "image taken from the camera" + new Date().getTime();
document.getElementById("IPCamIMG").src = newImage.src;
}
function playIPCamLoop(){
for (var i=0;i<5;i++){
delayFunction();
}
}
function delayFunction(){
setTimeout(reflashIPCam, 1000);
}