Webcam Studio

STUDIO CAM

Webcam var height_array = new Array(); var width_array = new Array(); width_array[2] = 640; height_array[2] = 480; Live Stream 0)) x = Math.round((x * 400) / width_array[currentCamera2]); if ((height_array[currentCamera2] != null) && (height_array[currentCamera2] > 0)) y = Math.round((y * 300) / height_array[currentCamera2]); if (x > 400) x = 400; if (y > 300) y = 300; if (myifr != null) myifr.src = "http://77.251.194.177:1111/ptz?src=" + currentCamera2 + "&moveto_x=" + x + "&moveto_y=" + y +""; return true; } function getElPos2() { el = document.images.webcam2; x = el.offsetLeft; y = el.offsetTop; elp = el.offsetParent; while(elp!=null) { x+=elp.offsetLeft; y+=elp.offsetTop; elp=elp.offsetParent; } return new Array(x,y); } function ErrorImage2() { errorimg2++; if (errorimg2>3){ document.images.webcam2.onload = ""; document.images.webcam2.onerror = ""; document.images.webcam2.src = "offline.jpg"; }else{ uniq2 = Math.random(); document.images.webcam2.src = "http://77.251.194.177:1111/cam_" + currentCamera2 + ".jpg?uniq="+uniq2; } } function DoIt2() { errorimg2=0; window.setTimeout("LoadImage2();", 40); } //-->