bigbluebutton-Github/bigbluebutton-client/resources/prod/lib/bbb_deskshare.js

36 lines
1.3 KiB
JavaScript
Executable File

function startApplet(IP, roomNumber, fullScreen, useSVC2)
{
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\"" +
"id=\"DeskShareApplet\" width=\"0\" height=\"1\" archive=\"bbb-deskshare-applet-0.8.jar\">" +
"<param name=\"ROOM\" value=\"" + roomNumber + "\"/>" +
"<param name=\"IP\" value=\"" + IP + "\"/>" +
"<param name=\"PORT\" value=\"9123\"/>" +
"<param name=\"FULL_SCREEN\" value=\"" + fullScreen + "\"/>" +
"<param name=\"SVC2\" value=\"" + useSVC2 + "\"/>" +
"</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;
}