2011-03-28 05:45:08 +08:00
|
|
|
function startApplet(IP, roomNumber, fullScreen)
|
|
|
|
{
|
|
|
|
var iframe = document.createElement("iframe");
|
|
|
|
iframe.id = "iframe";
|
|
|
|
document.body.appendChild(iframe);
|
|
|
|
frames[frames.length - 1].document.write(
|
|
|
|
"<applet code=\"org.bigbluebutton.deskshare.client.DeskShareApplet.class\"" +
|
2011-10-08 04:39:38 +08:00
|
|
|
"id=\"DeskShareApplet\" width=\"0\" height=\"1\" archive=\"bbb-deskshare-applet-0.71.jar\">" +
|
2011-03-28 05:45:08 +08:00
|
|
|
"<param name=\"ROOM\" value=\"" + roomNumber + "\"/>" +
|
|
|
|
"<param name=\"IP\" value=\"" + IP + "\"/>" +
|
2012-01-19 00:04:53 +08:00
|
|
|
"<param name=\"PORT\" value=\"9123\"/>" +
|
2011-03-28 05:45:08 +08:00
|
|
|
"<param name=\"FULL_SCREEN\" value=\"" + fullScreen + "\"/>" +
|
|
|
|
"</applet>"
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
function removeFrame () {
|
|
|
|
var iframe = document.getElementById("iframe");
|
|
|
|
iframe.parentNode.removeChild(iframe);
|
|
|
|
}
|
|
|
|
|
|
|
|
function setScreenCoordinates(x, y) {
|
|
|
|
return frames[frames.length - 1].document.DeskShareApplet.setScreenCoordinates(x,y);
|
|
|
|
}
|
|
|
|
|
|
|
|
function stopApplet(){
|
|
|
|
frames[frames.length - 1].document.DeskShareApplet.destroy();
|
|
|
|
removeFrame();
|
|
|
|
}
|
|
|
|
|
|
|
|
function checkForJava(){
|
|
|
|
// if (navigator.javaEnabled() || window.navigator.javaEnabled())
|
|
|
|
return 1;
|
|
|
|
}
|