2012-07-17 05:01:49 +08:00
|
|
|
function startApplet(IP, roomNumber, fullScreen, useSVC2)
|
2011-03-28 05:45:08 +08:00
|
|
|
{
|
|
|
|
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\"" +
|
2012-06-06 05:09:37 +08:00
|
|
|
"id=\"DeskShareApplet\" width=\"0\" height=\"1\" archive=\"bbb-deskshare-applet-0.8.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\"/>" +
|
2012-07-17 05:01:49 +08:00
|
|
|
"<param name=\"FULL_SCREEN\" value=\"" + fullScreen + "\"/>" +
|
|
|
|
"<param name=\"SVC2\" value=\"" + useSVC2 + "\"/>" +
|
2011-03-28 05:45:08 +08:00
|
|
|
"</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;
|
|
|
|
}
|