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(); import flash.system.Capabilities; import flash.external.ExternalInterface; if (canvas.useSSL) { return "rtmps"; } if (this.useRTMPT) { return "rtmpt"; } return "rtmp"; if (canvas.useSSL) { return canvas.rtmpsslport; } if (this.useRTMPT) { return canvas.red5httpport; } return canvas.rtmpport; return canvas.rtmphostlocal; return canvas.webAppRootKey; return this.getProtocol() + '://' + this.getHost() + ':' + this.getPort() + '/' + this.getWebappRootKey() + '/' + this.userScope; if($debug) Debug.write("hibRtmpConnection/onconnect"); if (this.reconnectionAction){ if (canvas.wicketsid == null) { this.overwritePublicSID.doCall(); this.setUsernameReconnect.doCall(); } else { canvas.sessionId = canvas.wicketsid; this.getPublicSID.doCall(); } } else if (!!canvas.wicketsid) { canvas.sessionId = canvas.wicketsid; if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.setProgress(); } this.getPublicSID.doCall(); this.refreshDelegate = new LzDelegate(this, "refreshSessionMeth"); lz.Timer.addTimer(this.refreshDelegate, canvas.refreshSession); if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.setProgress(); } } else { this.refreshDelegate = new LzDelegate(this, "refreshSessionMeth"); lz.Timer.addTimer(this.refreshDelegate, canvas.refreshSession); if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.setProgress(); } //Load Session Data this.getsessiondata.doCall(); } connected = true; client.setNewBroadCastingFlag = this.setNewBroadCastingFlag; client.roomConnect = this.roomConnect; client.roomDisconnect = this.roomDisconnect; client.addNewUser = this.addNewUser; client.sendVarsToMessage = this.sendVarsToMessage; client.sendVarsToMessageWithClient = this.sendVarsToMessageWithClient; client.sendVarsToWhiteboardById = this.sendVarsToWhiteboardById; client.sendVarsToModeratorGeneral = this.sendVarsToModeratorGeneral; client.sendSyncFlag = this.sendSyncFlag; client.sendSyncCompleteFlag = this.sendSyncCompleteFlag; client.sendObjectSyncFlag = this.sendObjectSyncFlag; client.sendObjectSyncCompleteFlag = this.sendObjectSyncCompleteFlag; client.startedRecording = this.startedRecording; client.loadWmlToWhiteboardById = this.loadWmlToWhiteboardById; client.newMessageByRoomAndDomain = this.newMessageByRoomAndDomain; client.interviewStatus = this.interviewStatus; client.newStream = this.newStream; client.closeStream = this.closeStream; //TODO FIXME method is absent :( client.stopStream = this.stopStream; //TODO FIXME method is absent :( sendImagesSyncCompleteFlag client.receiveExclusiveAudioFlag = this.receiveExclusiveAudioFlag; client.setNewModeratorByList = this.setNewModeratorByList; client.newScreenSharing = this.newScreenSharing; client.stopScreenSharingMessage = this.stopScreenSharingMessage; client.stopRecordingMessage = this.stopRecordingMessage; client.stopPublishingMessage = this.stopPublishingMessage; client.newRed5ScreenCursor = this.newRed5ScreenCursor; client.nickNameSet = this.nickNameSet; client.clearChatContent = this.clearChatContent; client.startedPublishing = this.startedPublishing; client.newPoll = this.newPoll; connected = false; if (this.reconnectionAction){ this.reconnectionAction = false; } 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.sessionId; if (canvas.thishib.loaderVar != null) { 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; if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.setProgress(); } parent.getDefaultLanguage.doCall(); return canvas.publicSID; //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("overwritePublicSID: ",value); return canvas.sessionId; return canvas.userId; 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.userId,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.sessionId; 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.initroomid = canvas.wicketroomid; } else { if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.close(); } } parent.getRoomById.doCall(); } if ($debug) Debug.write("getCurrentRoomClient: ", canvas.currentClient); ]]> return canvas.sessionId; return canvas.initroomid; return parent.parent.userlang; return parent.start; return parent.step; if (!user) { new lz.errorPopup(canvas,{error:"Missing User Object"}); } hib.userobject = user; canvas.userId = hib.userobject.id; 0 && value[0] != null) { //if ($debug) Debug.write("Give exclusive audio keycode is: ", value[0].value); canvas.setAttribute('GIVE_EXCLUSIVE_AUDIO_KEY', value[0].value); } if (value.length > 1 && value[1] != null) { if ($debug) Debug.write("red5sip.enable is: ", value[1].value); canvas.setAttribute('RED5_SIP_ENABLE', value[1].value); } if (value.length > 2 && value[2] != null) { if ($debug) Debug.write("max_upload_size is: ", value[2].value); canvas.setAttribute('MAX_UPLOAD_SIZE', value[2].value); } if (value.length > 3 && value[3] != null) { if ($debug) Debug.write("Mute/unmute keycode is: ", value[3].value); canvas.setAttribute('MUTE_AUDIO_KEY', value[3].value); } if (value.length > 4 && value[4] != null) { if ($debug) Debug.write("redirect.url.for.external.users is: ", value[4].value); canvas.setAttribute('REDIRECT_URL_FOR_EXTERNAL_USERS', value[4].value); } } else { if ($debug) Debug.warn("xmlcrm.getGeneralOptions empty!"); } if (canvas.wicketsid != null) { parent.loginWicket.doCall(); } 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.invitationHash) { parent.getInvitationByHash.doCall(); } else if (canvas.secureRemoteUserLogin) { if ($debug) Debug.write("secureLoginByRemote:: ",canvas.secureHash); hib.userobject = {}; parent.secureLoginByRemote.doCall(); } } ]]> return canvas.sessionId; return canvas.wicketsid; return canvas.wicketroomid; -1; } if ($debug) Debug.write("hibRtmpConnection::loginWicket -> canvas.becomemoderator", canvas.becomemoderator); if (value.sessionData == null) { if ($debug) Debug.write("No Language Found to assign"); return; } hib.userobject = value; parent.getCurrentRoomClient.doCall(); } else { new lz.labelerrorPopup(canvas, {errorlabelid: 1599}); } ]]> return canvas.sessionId; return canvas.userId; return canvas.currentuser; return canvas.firstName; return canvas.lastName; //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("setUsernameAndSession: ",canvas.userId,value); if (canvas.thishib.loaderVar != null) { canvas.thishib.loaderVar.close(); } //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); if (!!canvas._videocontainer) { if (value.sipTransport) { canvas._videocontainer.addItem(value.connectedSince, value.isMod, value.streamid , value.roomId, '', value.formatedDate, value.userpos, value.usercolor, value); } else { canvas._videocontainer.addClientItem(value.connectedSince, value.isMod, value.streamid , value.roomId, '', 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 == null || value.screenClient) { return; } canvas.commonVideoViewContent.startStream(value); //The onResult-Handler will be called be the rtmpconnection if ($debug) Debug.write("**** closeStream: ",value); if (value == null) { return; } if (value.screenClient) { if ($debug) Debug.write(" ondata closeStream: ",value.streamPublishName); canvas.commonVideoViewContent.closeScreenSharing(value); } else { //free the VideoContainer //canvas._videocontainer.closeStreamClient(value.publicSID); canvas.commonVideoViewContent.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 stopScreenSharingMessage : ",value.streamPublishName); canvas.commonVideoViewContent.closeScreenSharing(value); if ($debug) Debug.write("**** clientregisterRoom::ondata ", value); canvas._videocontainer.disconnectclient(id); if (canvas.commonVideoViewContent != null) { canvas.commonVideoViewContent.disconnectclient(id); if (canvas.currentModApply != null) canvas.currentModApply.rejectUser(value); if (value.isRecording) { canvas._mymod.recordingUser = null; } if (value.streamPublishStarted) { canvas._mymod.publishingObj = null; } canvas._mymod.setMessage(); } //The onResult-Handler will be called be the rtmpconnection canvas._mymod.recordingUser = null; canvas._mymod.setMessage(); //The onResult-Handler will be called be the rtmpconnection canvas._mymod.publishingObj = null; canvas._mymod.setMessage(); if ($debug) Debug.write("setSyncFlag: ",value); if ($debug) Debug.write("logicalRoomLeaveDis: ",value); parent.roomDisconnectUser(value, value.broadCastID); return parent.publicSIDOfNewModerator; return parent.publicSIDOfNewModerator; return parent.publicSIDOfNewModerator; return parent.isAllowedToBroadCastAV; return parent.canVideo; return parent.interviewPodId; return parent.publicSID; this.publicSID = tPublicSID; this.doCall(); 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 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; return parent.messageObj; this.messageObj = messageObject; this.doCall(); 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); 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.checkScreenSharing.doCall(); if ($debug) Debug.write("startedPublishing: ", value); canvas._mymod.publishingObj = {user: value[0], url: value[1]}; canvas._mymod.setMessage(); if ($debug) Debug.write("roomConnect: ", value); if (!!canvas._videocontainer) { canvas._videocontainer.addItem(value.connectedSince, value.isMod, value.streamid, value.username , '', value.formatedDate, value.userpos, value.usercolor, value); } if ($debug) Debug.write("nickNameSet: ", value); if (canvas.publicSID == value.publicSID) { canvas.currentClient = value; canvas.setAttribute('mail', value.email); canvas.setAttribute('firstName', value.firstname); canvas.setAttribute('lastName', value.lastname); } var v = canvas.commonVideoViewContent.getVideoObjectByPublicSID(value.publicSID); if (v != null) { v.setAttribute('chatpartnername', canvas.currentClient.firstname + ' ' + canvas.currentClient.lastname); } if (canvas._videocontainer) { canvas._videocontainer._participants.updateByPublicSID(value.publicSID, value); } this.publicSID = publicSID; this.canGiveAudio = giveAudio; this.doCall(); return canvas.sessionId; return parent.publicSID; return parent.canGiveAudio;