1
rlocone
WebCam XP & Xoops
  • 2004/8/13 15:39

  • rlocone

  • Just popping in

  • Posts: 9

  • Since: 2004/7/31


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

Login

Who's Online

133 user(s) are online (58 user(s) are browsing Support Forums)


Members: 0


Guests: 133


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits