| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Experimental Page

Page history last edited by Tony Toole 14 years, 1 month ago

This page is used for testing out features and functionality with potential to be used in the Ratatat online Learning Environment

Mostly this relates to widgets, their suitability for the function envisaged, and their ability to be embedded successfully in the Learning Environment application. Each widget presented on the page is accompanied by notes describing the functionality and the issues around successful use.

 

<script type="text/javascript">

  var height_array = new Array();

  var width_array = new Array();

  width_array[1] = 320;

  height_array[1] = 240;

</script>

<img src="http://FAD-MT-NDT03-LT:8080/loading.jpg" class="webcam" id="webcam1" onmousedown="PTZMouseDown1(event)" width="320" height="240" alt="Live Stream" />

<script type="text/javascript">

<!--

currentCamera1= 1;

errorimg1= 0;

document.images.webcam1.onload = DoIt1;

document.images.webcam1.onerror = ErrorImage1;

function LoadImage1()

{

        uniq1 = Math.random();

        document.images.webcam1.src = "http://FAD-MT-NDT03-LT:8080/cam_" + currentCamera1 + ".jpg?uniq="+uniq1;

        document.images.webcam1.onload = DoIt1;

}

function PTZMouseDown1(e)

{

        var IE = document.all?true:false;

        var x,y;

        var myx,myy;

        var myifr = document.getElementById("_iframe-ptz");

        tp = getElPos1();

        myx = tp[0];

        myy = tp[1];

        if(IE){

        var scrollX = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft;

        var scrollY = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;

        x = event.clientX - myx + scrollX;

        y = event.clientY - myy + scrollY;

        } else {

        x = e.pageX - myx;

        y = e.pageY - myy;

        }

        if ((width_array[currentCamera1] != null) && (width_array[currentCamera1] > 0)) x = Math.round((x * 400) / width_array[currentCamera1]);

        if ((height_array[currentCamera1] != null) && (height_array[currentCamera1] > 0)) y = Math.round((y * 300) / height_array[currentCamera1]);

        if (x > 400) x = 400;

        if (y > 300) y = 300;

        if (myifr != null) myifr.src = "http://FAD-MT-NDT03-LT:8080/ptz?src=" + currentCamera1 + "&moveto_x=" + x + "&moveto_y=" + y +"";

        return true;

}

function getElPos1()

{

            el = document.images.webcam1;

            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 ErrorImage1()

{

        errorimg1++;

        if (errorimg1>3){

              document.images.webcam1.onload = "";

              document.images.webcam1.onerror = "";

              document.images.webcam1.src = "offline.jpg";

              }else{

                uniq1 = Math.random();

            document.images.webcam1.src = "http://FAD-MT-NDT03-LT:8080/cam_" + currentCamera1 + ".jpg?uniq="+uniq1;

              }

}

function DoIt1()

{

        errorimg1=0;

        window.setTimeout("LoadImage1();", 40);

}

//-->

</script>

 

 

Live Stream

The Chatango Chat Tool

 


[ Copy this | Start New | Full Size ]

 

Click on    for Chatango implementation notes

The WebCamXP 5 Webcam Server

 

 

 

     

The Embedit.in Document presentation Tool (link)

 

 

Click on   for Embedit.in implementation notes 

The Embedit.in Document presentation Tool (thumbnail)

 

 

The Embedit.in Document presentation Tool (embedded) 

 

 

Huddle Project Environment

 

   
     
     

 

 

 

 

Comments (1)

Tony Toole said

at 9:19 am on Jun 15, 2009

This page is a place for trying things out, particularly widgets and mashups. The first trial was playing about with webcams and the two windows above are embedded web pages from two of my laptops set up as webservers to broadcast two webcam feeds. I'm accessing the page from Glamorgan at present and the feeds are not showing - I think this might be because the PCs have hibernated. I'll disable that and try again. (I've also set the same machines up as a VPN and that is suffering fronm the same problem)

You don't have permission to comment on this page.