6
Hello All!
Has anyone tried using webcam xp & streaming it's contents to Xoops? I've been trying that very thing. First I made a custom block then imported the generated html code from webcam xp. Here is a copy of the script:
---
<SCRIPT LANGUAGE="JavaScript">
<!--
errorimg1= 0;
function LoadImage1()
{
uniq1 = Math.random();
document.images.webcam1.src = "http://12.222.110.10:8181/cam_1.jpg?uniq="+uniq1;
window.status = "[powered by webcamXP]";
}
function ErrorImage1()
{
errorimg1++;
if (errorimg1>1){
document.images.webcam1.onload = "";
document.images.webcam1.src = "http://www.darkboard.net/webcam/offline.jpg";
}else{
uniq1 = Math.random();
document.images.webcam1.src = "http://12.222.110.10:8181/cam_1.jpg?uniq="+uniq1;
}
}
function DoIt1()
{
errorimg1=0;
window.setTimeout("LoadImage1();", 55);
}
document.write('<img src="loading.jpg" id="webcam1" name="webcam1" onload="DoIt1()" onerror="ErrorImage1()" width=160 height=120 border=0 style="border-color:#000000; border-style:solid;">');
//-->
</script>
---
Now here's the problem. It doesn't seem to work. I'll get the offline.jpg
I wish there was a module that "worked"
thanks