2012-07-17 05:01:49 +08:00
|
|
|
function startApplet(IP, roomNumber, fullScreen, useSVC2)
|
2011-03-28 05:45:08 +08:00
|
|
|
{
|
2014-07-30 04:16:12 +08:00
|
|
|
var div = document.createElement("div");
|
|
|
|
div.id = "deskshare";
|
|
|
|
|
|
|
|
div.innerHTML =
|
2011-03-28 05:45:08 +08:00
|
|
|
"<applet code=\"org.bigbluebutton.deskshare.client.DeskShareApplet.class\"" +
|
2014-08-13 17:28:08 +08:00
|
|
|
"id=\"DeskShareApplet\" width=\"100\" height=\"10\" archive=\"bbb-deskshare-applet-0.9.jar\">" +
|
2014-07-30 04:16:12 +08:00
|
|
|
"<param name=\"ROOM\" value=\"" + roomNumber + "\"/>" +
|
|
|
|
"<param name=\"IP\" value=\"" + IP + "\"/>" +
|
|
|
|
"<param name=\"PORT\" value=\"9123\"/>" +
|
|
|
|
"<param name=\"SCALE\" value=\"0.8\"/>" +
|
|
|
|
"<param name=\"FULL_SCREEN\" value=\"" + fullScreen + "\"/>" +
|
|
|
|
"<param name=\"SVC2\" value=\"" + useSVC2 + "\"/>" +
|
|
|
|
"<param name=\"JavaVersion\" value=\"1.7.0_51\"/>" +
|
|
|
|
"<param name=\"permissions\" value=\"all-permissions\"/>" +
|
|
|
|
"</applet>";
|
|
|
|
document.body.appendChild(div);
|
2011-03-28 05:45:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function removeFrame () {
|
2014-07-30 04:16:12 +08:00
|
|
|
var div = document.getElementById("deskshare");
|
|
|
|
div.parentNode.removeChild(div);
|
2011-03-28 05:45:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function setScreenCoordinates(x, y) {
|
2014-07-30 04:16:12 +08:00
|
|
|
document.DeskShareApplet.setScreenCoordinates(x,y);
|
2011-03-28 05:45:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function stopApplet(){
|
2014-07-30 04:16:12 +08:00
|
|
|
document.DeskShareApplet.destroy();
|
2011-03-28 05:45:08 +08:00
|
|
|
removeFrame();
|
|
|
|
}
|
|
|
|
|
|
|
|
function checkForJava(){
|
|
|
|
// if (navigator.javaEnabled() || window.navigator.javaEnabled())
|
|
|
|
return 1;
|
|
|
|
}
|