if (!window.console) window.console = {}; if (!window.console.log) window.console.log = function () { }; function startApplet(IP, roomNumber, fullScreen, useSVC2) { console.log("Starting deskshare applet."); var div = document.createElement("div"); div.id = "deskshare"; div.innerHTML = "" + "" + "" + "" + "" + "" + "" + "" + "" + ""; document.body.appendChild(div); } function removeFrame () { var div = document.getElementById("deskshare"); if (div.parentNode) { // Need to set the innerHTML otherwise the applet will restart in IE. // see https://code.google.com/p/bigbluebutton/issues/detail?id=1776 div.innerHTML = ""; div.parentNode.removeChild(div); } } function setScreenCoordinates(x, y) { document.DeskShareApplet.setScreenCoordinates(x,y); } function stopApplet(){ console.log("Stopping deskshare applet."); removeFrame(); } function appletStartupCallback() { BBB.javaAppletLaunched(); }