this.updateIcons(); if (canvas.ismoderator) { this._isMod.setAttribute("visibility","visible"); this._isModAddbutton.setAttribute("visibility","hidden"); } else { this._isMod.setAttribute("visibility","hidden"); this._isModAddbutton.setAttribute("visibility","visible"); } if (canvas.ismoderator) { this._canDraw.setAttribute("visibility","visible"); this._canDraw.isActive = false; //this._canDraw._text.setAttribute("text",canvas.getLabelName(681)); this._canDrawModerator.setAttribute("visibility","hidden"); } else { if (canvas.isAllowedToDraw) { this._canDraw.setAttribute("visibility","visible"); this._canDraw.isActive = true; //this._canDraw._text.setAttribute("text",canvas.getLabelName(612)); this._canDrawModerator.setAttribute("visibility","hidden"); } else { this._canDraw.setAttribute("visibility","hidden"); this._canDrawModerator.setAttribute("visibility","visible"); } } if ($debug) Debug.write("canvas.isAllowedToScreenShare :: ",canvas.isAllowedToScreenShare); if (canvas.ismoderator) { this._allowScreen.setAttribute("visibility","visible"); this._allowScreen.isActive = false; this._allowRemote.setAttribute("visibility","visible"); this._allowRemote.isActive = false; this._allowExclusiveAudio.setAttribute("visibility","visible"); this._allowExclusiveAudio.isActive = false; //this._canDraw._text.setAttribute("text",canvas.getLabelName(681)); this._denyScreen.setAttribute("visibility","hidden"); this._denyRemote.setAttribute("visibility","hidden"); this._denyExclusiveAudio.setAttribute("visibility","hidden"); } else { if (canvas.isAllowedToScreenShare) { this._allowScreen.setAttribute("visibility","visible"); this._allowScreen.isActive = true; //this._canDraw._text.setAttribute("text",canvas.getLabelName(612)); this._denyScreen.setAttribute("visibility","hidden"); } else { this._allowScreen.setAttribute("visibility","hidden"); this._denyScreen.setAttribute("visibility","visible"); } if (canvas.isAllowedToRemoteControl) { this._allowRemote.setAttribute("visibility","visible"); this._allowRemote.isActive = true; this._denyRemote.setAttribute("visibility","hidden"); } else { this._allowRemote.setAttribute("visibility","hidden"); this._denyRemote.setAttribute("visibility","visible"); } if (canvas.isAllowedToGiveExclusiveAudio) { this._allowExclusiveAudio.setAttribute("visibility","visible"); this._allowExclusiveAudio.isActive = true; this._denyExclusiveAudio.setAttribute("visibility","hidden"); } else { this._allowExclusiveAudio.setAttribute("visibility","hidden"); this._denyExclusiveAudio.setAttribute("visibility","visible"); } } if ($debug) Debug.write("+ STATUS ICONS + ",this.showAvIcons,canvas.isBroadCasting); if (this.showAvIcons) { if (canvas.isBroadCasting) { this._allowDevice.setAttribute("visibility","hidden"); this._denyDevice.setAttribute("visibility","visible"); } else { this._allowDevice.setAttribute("visibility","visible"); this._denyDevice.setAttribute("visibility","hidden"); } } if (canvas.micMuted) { this._muteDevice.setAttribute("visibility","hidden"); this._unMuteDevice.setAttribute("visibility","visible"); } else { this._muteDevice.setAttribute("visibility","visible"); this._unMuteDevice.setAttribute("visibility","hidden"); } //Ask for Right to Draw on Whiteboard var tDate = new Date(); canvas.thishib.sendMessageWithClient.sendMessage("applyForWhiteboard",tDate.getTime()); if ($debug) Debug.write("Allow Screen: ",canvas.refObj.publicSID); var tDate = new Date(); canvas.thishib.sendMessageWithClient.sendMessage("applyForScreen",tDate.getTime()); if ($debug) Debug.write("Allow Remote: ",parent.parent.parent.refObj.publicSID); var tDate = new Date(); canvas.thishib.sendMessageWithClient.sendMessage("applyForRemote",tDate.getTime()); if ($debug) Debug.write("NOTHING: ",canvas.publicSID); if (canvas.ismoderator) { //Do directly send confirmation to share Audio/Video to SELF! so that all users get //the notification and the broadcasting Bit is set for this User canvas.thishib.setBroadCastingFlag.publicSIDOfNewModerator = canvas.publicSID; canvas.thishib.setBroadCastingFlag.isAllowedToBroadCastAV = true; canvas.thishib.setBroadCastingFlag.doCall(); } else { //Apply for Right to Share Audio/Video var tDate = new Date(); canvas.thishib.sendMessageWithClient.sendMessage("applyForAV",tDate.getTime()); } if ($debug) Debug.write("DENY: ",canvas.publicSID); //Nothing happens here canvas.thishib.setBroadCastingFlag.publicSIDOfNewModerator = canvas.publicSID; canvas.thishib.setBroadCastingFlag.isAllowedToBroadCastAV = false; canvas.thishib.setBroadCastingFlag.doCall(); canvas._videocontainer._videoviewcontent.muteSound(canvas.publicSID, true); canvas._videocontainer._videoviewcontent.muteSound(canvas.publicSID, false); if ($debug) Debug.write("Allow Give Exclusive Audio: ",canvas.publicSID); var tDate = new Date(); canvas.thishib.sendMessageWithClient.sendMessage("applyForGiveExclusiveAudioOn",tDate.getTime());