this.status.setAttribute("text", this.statusText); this.status.setAttribute("fgcolor", this.statusColor); this.setAttribute("visibility", "visible"); lz.Timer.addTimer( new LzDelegate( this, "selfDestroy" ), 3000 ); this.destroy(); return this.protocollName+'://'+canvas.rtmphostlocal+':'+this.protocollPort+'/'+canvas.webAppRootKey+'/'+this.userScope; if($debug) Debug.write("hibRtmpConnection/onconnect"); if (this.reconnectionAction){ this.overwritePublicSID.doCall(); this.setUsernameReconnect.doCall(); } else if (this.reconnectAfterRoomleft) { //Return to content after reconnect canvas.thishib.reconnectedRoomInstance.destroy(); this.overwritePublicSID.doCall(); this.setUsernameReconnect.doCall(); } else { this.refreshDelegate = new LzDelegate( this, "refreshSessionMeth" ); //lz.Timer.addTimer( this.refreshDelegate, 60000 ); lz.Timer.addTimer( this.refreshDelegate, canvas.refreshSession ); canvas.thishib.loaderVar.setProgress(); //check and get the Applet SIP Status getAppletStatus(); //Load Session Data this.getsessiondata.callRPC(); } canvas.sendViaLocalConnection(canvas.rtmp_lc_name, "disconnect", [canvas.thishib.src]); if (this.reconnectionAction){ this.reconnectionAction = false; this.reconnectObjRef.reconnectSuccess(); } else if (this.reconnectAfterRoomleft) { loadContentByTempActionForNavi(); } canvas.currentContentView.sendInit.sendEvent(this); this.refreshSession.doCall(); return canvas.sessionId; //if ($debug) Debug.write("hibRtmpConnection/refreshSession [",value,"]"); lz.Timer.addTimer( parent.refreshDelegate, canvas.refreshSession ); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("hibRtmpConnection/getsessiondata [",value,"]"); canvas.sessionObject = value; canvas.sessionId = value.session_id; canvas.thishib.loaderVar.setProgress(); parent.getPublicSID.doCall(); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("hibRtmpConnection/getPublicSID [",value,"]"); canvas.publicSID = value; canvas.thishib.loaderVar.setProgress(); parent.getSIPModuleStatus.doCall(); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("hibRtmpConnection/getSIPModuleStatus [",value,"]"); canvas.thishib.sip_enabled = value; canvas.thishib.loaderVar.setProgress(); parent.getLanguages.doCall(); return canvas.publicSID; //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("overwritePublicSID: ",value); //The onResult-Handler will be called be the rtmpconnection //Debug.write("getLanguages: ",value); canvas.thishib.loaderVar.setProgress(); parent.getDefaultLanguage.doCall(); 1) { var lngCode = browserLang.substring(0, 2); //openlaszlo XPath is able to search nothing, so will iterate var xpath = "languagesSet:/item"; var list = languagesSet.getPointer().xpathQuery(xpath); var partMatch = -1, fullMatch = -1; for (var i = 1; list != null && i <= list.length; ++i) { xpath = "languagesSet:/item[" + i + "]/code/text()"; var val = languagesSet.getPointer().xpathQuery(xpath); if (val != null && val.length > 1) { var partCode = ("" + val).substring(0, 2); if (browserLang == val) { fullMatch = i; } else if (lngCode == val) { partMatch = i; } else if (partCode == lngCode) { partMatch = i; } } } if (partMatch != -1 || fullMatch != -1) { i = (fullMatch != -1) ? fullMatch : partMatch; xpath = "languagesSet:/item[" + i + "]/language_id/text()"; lang_id = languagesSet.getPointer().xpathQuery(xpath); } } if (canvas.language_id == 0) { userlang = lang_id; } else { userlang = canvas.language_id; } } ]]> return canvas.sessionId; return canvas.sessionId; return canvas.user_id; return canvas.currentuser; return canvas.firstName; return canvas.lastName; return canvas.picture_uri; //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("setUsernameReconnect: ",canvas.user_id,value); parent.reconnectComplete(); //The onResult-Handler will be called be the rtmpconnection canvas.default_lang_id = value; if ($debug) Debug.write("getDefaultLanguage: ",value,"; canvas.lang = ", canvas.language_id); if (canvas.language_id==0){ parent.userlang = canvas.default_lang_id; } else { parent.userlang = canvas.language_id; } parent.getLanguageByIdAndMax.doCall(); return canvas.invitationHash; -
"+ value.validTo; var dlg = new lz.rpcErrorDialog(canvas,{errorid:-50,addInfo:addInfo}); } } ]]>
return canvas.sessionId; return canvas.secureHash; return canvas.remoteUserSid; return canvas.sessionId; 0) { canvas.thishib.loaderVar.close(); //parent.getRoomById.doCall(); var obj = new Array(); obj["action"] = "recordModule"; loadContent(obj,null,null); } else { canvas.thishib.loaderVar.close(); parent.getRoomById.doCall(); } } ]]> return canvas.sessionId; return canvas.initroomid; return parent.parent.userlang; return parent.start; return parent.step; return canvas.sessionId; //The onResult-Handler will be called be the rtmpconnection if (value == null) { new lz.errorPopup(canvas,{error:"Missing User Object, set the Configuration value of the key 'default.rpc.userid' to a valid user Id that has at least one Organization assigned in the OpenMeetings Administrion Configuration Panel "}); } if ($debug) Debug.write("markSessionAsLogedIn1 ",value); hib.userobject = value; canvas.user_id = hib.userobject.user_id; if (value.organisation_users.length > 0){ hib.currentdomain = value.organisation_users[0].organisation.name; hib.currentdomainObj = value.organisation_users[0].organisation; } else { new lz.errorPopup(canvas,{error:"Missing Organization in User Object, set the Configuration value of the key 'default.rpc.userid' to a valid user Id that has at least one Organization assigned in the OpenMeetings Administrion Configuration Panel "}); } //At this moment we have to check that the user does get a valid //SIP-Account, if the Applet is enabled and ready //=> We need to login the SIP Applet if (sipIsEnabled()) { if ($debug) Debug.write(" -- sipIsEnabled -- "); loginSipUser(hib.userobject.userSipData); } else { if ($debug) Debug.write("markSessionAsLogedIn2 ",canvas.sessionId); if ($debug) Debug.write("markSessionAsLogedIn3 ",canvas.initroomid); if ($debug) Debug.write("markSessionAsLogedIn4 ",canvas.isinitRoomDirect); if ($debug) Debug.write("markSessionAsLogedIn5 ",canvas.remoteUserLogin); if ($debug) Debug.write("markSessionAsLogedIn6 ",canvas.directUserLogin); if ($debug) Debug.write("markSessionAsLogedIn7 ",canvas.directRoomId); if ($debug) Debug.write("markSessionAsLogedIn8 ",canvas.secureRemoteUserLogin); if (canvas.secureRemoteUserLogin) { if ($debug) Debug.write("markSessionAsLogedIn == CALL ",canvas.secureHash); parent.secureLoginByRemote.doCall(); } else if (canvas.isinitRoomDirect){ parent.getInvitationByHash.doCall(); } else if (canvas.remoteUserLogin) { parent.loginUserByRemote.doCall(); } else if (canvas.directUserLogin) { //show Nick Name or Password Protection Dialog canvas.initroomid = Number(canvas.directRoomId); parent.getRoomById.doCall(); } } //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("getStates: ",value); canvas.statesInitValues = value; canvas.thishib.loaderVar.setProgress(); parent.getTimeZones.doCall(); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("getTimeZones: ",value); canvas.thishib.loaderVar.setProgress(); parent.getGeneralOptions.doCall(); 0) { //if ($debug) Debug.write("Give exclusive audio keycode is: ", value[0].conf_value); canvas.setAttribute('GIVE_EXCLUSIVE_AUDIO_KEY', value[0].conf_value); } if (value.length > 1) { if ($debug) Debug.write("red5sip.enable is: ", value[1].conf_value); canvas.setAttribute('RED5_SIP_ENABLE', value[1].conf_value); } if (value.length > 2) { if ($debug) Debug.write("max_upload_size is: ", value[2].conf_value); canvas.setAttribute('MAX_UPLOAD_SIZE', value[2].conf_value); } } else { if ($debug) Debug.warn("xmlcrm.getGeneralOptions empty!"); } parent.getUserSalutations.doCall(); ]]> return canvas.sessionId; return hib.currentdomainObj.organisation_id; //Sessionmanagement.getInstance() //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("setCurrentUserOrganization: ",value); return canvas.sessionId; return parent.parent.userlang; //The onResult-Handler will be called be the rtmpconnection //Debug.write("getUserSalutations ",value); canvas.salutationsInitValues = value; //check for password reset if (canvas.isResetUsername){ if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.close(); } new lz.resetPassword(canvas.main_content._content.inner); } else { if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.close(); } //do not show loggin-PopUp for the test-Application if (parent.testAppLoading){ canvas.loadNextStepTestApp(); } else { if (canvas.isinitRoomDirect || canvas.remoteUserLogin || canvas.directUserLogin || canvas.secureRemoteUserLogin){ if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.setProgress(); } if($debug) Debug.write("isinitRoomDirect or remoteUserLogin is true"); parent.markSessionAsLogedIn.doCall(); } else { if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.setProgress(); } //Check if user is auto-logged in by session var g = canvas.getUserData(); if($debug) Debug.write("checkLoginData/g: ",g); var storedSession = g["storedSession"]; if($debug) Debug.write("checkLoginData/save: ",storedSession); parent.loginByRemember.currentHashSession = storedSession; parent.loginByRemember.doCall(); } } } return canvas.sessionId; return parent.currentHashSession; = 2) { canvas.becomemoderator = true; } else { canvas.becomemoderator = false; } if (value.sessionData == null) { if ($debug) Debug.write("No Language Found to assign"); new lz.checkLoginData(canvas.main_content._content.inner); return; } if ($debug) Debug.write("value.sessionData: ", value.sessionData); hib.userlang = isNaN(value.sessionData.language_id) ? 1 : Number(value.sessionData.language_id); canvas.setAttribute('userlang', hib.userlang); canvas.setAttribute('language_id', hib.userlang); hib.userobject = value; var found = false; for (var i=0;i this.sipLoader = new lz.sipLoader(canvas); loginSipUser(hib.userobject.userSipData,this); this.sipLoader.destroy(); hib.getLanguageByIdAndMax.doCall(); canvas.focusOnItem = null; return canvas.sessionId; //The onResult-Handler will be called be the rtmpconnection //Debug.write("getRoomTypes ",value); canvas.roomTypesInitValues = value; canvas.sendViaLocalConnection(canvas.rtmp_lc_name, "getRoomTypes", [value]); canvas.thishib.loaderVar.setProgress(); parent.setUsernameAndSession.doCall(); return canvas.sessionId; return parent.parent.userlang; return hib.currentdomainObj.organisation_id; //Debug.write("clear yesno,askagain: ",yesno,askagain); //can only be true in this case var g = canvas.getUserData(); g["doShowUpdateProfileMessage"]=askagain; canvas.setUserData(g); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("################ setId: ",value); canvas.setAttribute('streamid',value); return canvas.sessionId; return canvas.user_id; return canvas.currentuser; return canvas.firstName; return canvas.lastName; //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("setUsernameAndSession: ",canvas.user_id,value); if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.setProgress(); } parent.getNavi.doCall(); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("testMethod ",value); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("addNewUser: ",value); canvas._videocontainer.addClientItem(value.connectedSince,value.isMod,value.streamid,value.room_id,'',value.formatedDate,value.userpos,value.usercolor,value); canvas.setAttribute('numberofpartners',canvas.numberofpartners+1); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("newStream: ",value); if (value.isScreenClient) { return; } canvas._videocontainer.startStream(value.publicSID,value.broadCastID,value.firstname,value.lastname,value.interviewPodId,value.VWidth,value.VHeight); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("**** closeStream: ",value); if (value.isScreenClient) { if ($debug) Debug.write(" onResult stopRed5ScreenSharing : ",value.streamPublishName); canvas.currentBaseConferenceRoom._screenSharingAdapter.closeScreenSharing(value); } else { //free the VideoContainer //canvas._videocontainer.closeStreamClient(value.publicSID); canvas.sendViaLocalConnection(canvas.vid_lc_name, "closeStreamClient", [value.publicSID]); canvas.setAttribute('numberofpartners',canvas.numberofpartners-1); } //TODO:check first current tab //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("**** closeStream: ",value); if ($debug) Debug.write(" onResult stopRed5ScreenSharing : ",value.streamPublishName); canvas.currentBaseConferenceRoom._screenSharingAdapter.closeScreenSharing(value); //The onResult-Handler will be called be the rtmpconnection ////Debug.write("clientregisterRoom: ",value); //parent.getClientListScope.doCall(); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("roomDisconnect: ",value); if (value.isScreenClient) { return; } if (canvas.currentActivityList != null) { canvas.currentActivityList.addMessageRequest(value, canvas.getLabelName(1367), new Date().getTime()); } if (canvas._overallchatcontent!=null){ var parentObj = canvas._overallchatcontent.parent.parent.parent._chatparticipants; parentObj.removeItemById(value.user_id); } if (canvas._videocontainer!=null){ canvas._videocontainer.disconnectclient(value.publicSID); if (canvas.currentModApply!=null) canvas.currentModApply.rejectUser(value); //parent.getClientListScope.doCall(); if (value.isRecording) { canvas._mymod.recordingUser = null; canvas._mymod.setMessage(); } } //The onResult-Handler will be called be the rtmpconnection canvas._mymod.recordingUser = null; canvas._mymod.setMessage(); if ($debug) Debug.write("setSyncFlag: ",value); if ($debug) Debug.write("logicalRoomLeaveDis: ",value); canvas._videocontainer.disconnectclient(value.broadCastID); //remove that client from sync list of wmlFileLoader/image if present if (canvas.currentModApply!=null) canvas.currentModApply.rejectUser(value); if (value.isRecording) { canvas._mymod.recordingUser = null; canvas._mymod.setMessage(); } return canvas.objWhiteboard; return parent.publicSIDOfNewModerator; return parent.publicSIDOfNewModerator; return parent.publicSIDOfNewModerator; return parent.isAllowedToBroadCastAV; return parent.interviewPodId; return null; return parent.publicSID; this.publicSID = tPublicSID; this.doCall(); return null; this.publicSID = tPublicSID; this.mute = tMute; var obj = new Array(); obj["mute"] = tMute; obj["publicSID"] = tPublicSID; this.onMute.sendEvent(obj); this.doCall(); return parent.publicSID; return parent.mute; return null; return null; return canvas.publicSID; return canvas.sessionId; return parent.publicSID; return parent.canDraw; return canvas.sessionId; return parent.publicSID; return parent.canShare; return canvas.sessionId; return parent.publicSID; return parent.canRemote; return canvas.objMessage; return canvas.objMessage; return canvas.VarsModeratorGeneral; this.messageObj = new Object(); this.messageObj[0] = typeName; this.messageObj[1] = messageObject; this.doCall(); this.messageObj = new Object(); this.messageObj[0] = typeName; this.messageObj[1] = messageObject; this.messageObj[2] = tStamp; this.doCall(); return parent.messageObj; //The onResult-Handler will be called be the rtmpconnection //Debug.write("sendMessageWithClient : ",value); return parent.parent.applymessage; //The onResult-Handler will be called be the rtmpconnection //if ($debug) Debug.write("newMessageByRoomAndDomain: ",value); if ($debug) Debug.write("removeClientFromChatNotification: ",value); if ($debug) Debug.write("stopedRecording: ",value); canvas._mymod.recordingUser = null; canvas._mymod.setMessage(); if ($debug) Debug.write("startedRecording: ",value); canvas._mymod.recordingUser = value; canvas._mymod.setMessage(); if ($debug) Debug.write("checkLzRecording: ",value); if (value != null) { canvas._mymod.recordingUser = value; canvas._mymod.setMessage(); } parent.checkRed5ScreenSharing.doCall(); if ($debug) Debug.write("sendVarsToOverallChat: ",value); if (canvas._overallchatcontent!=null){ canvas._overallchatcontent.addChatHistory(value.message,value.client); } if ($debug) Debug.write("roomConnect: ",value); if (canvas._overallchatcontent != null){ canvas._overallchatcontent.parent.parent.parent._chatparticipants.addItem(value); } return canvas.sessionId; return parent.room_id; return parent.isClosed; this.publicSID = publicSID; this.canGiveAudio = giveAudio; this.doCall(); return canvas.sessionId; return parent.publicSID; return parent.canGiveAudio;