Revision: 4290
Author:   seba.wagner
Date:     Sun Sep 25 03:24:57 2011
Log:      Fixes mute functionality in roomtype "event"
http://code.google.com/p/openmeetings/source/detail?r=4290

Modified:
/trunk/singlewebapp/WebContent/openmeetings/modules/conference/eventuserlist/eventUserList.lzx /trunk/singlewebapp/WebContent/openmeetings/modules/conference/eventuserlist/eventUserListInner.lzx /trunk/singlewebapp/WebContent/openmeetings/modules/conference/eventuserlist/moderationMiniIcons.lzx /trunk/singlewebapp/WebContent/openmeetings/modules/conference/video/baseVideoObject.lzx

=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/eventuserlist/eventUserList.lzx Wed Aug 24 01:01:53 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/eventuserlist/eventUserList.lzx Sun Sep 25 03:24:57 2011
@@ -312,7 +312,15 @@
                        }
                ]]>
        </method>
-
+
+       <method name="updateMuteStatusVideoView" args="roomClient">
+        <![CDATA[
+            var videoContainer = parent.parent._videoviewcontent;
+            for (var i=0;i<videoContainer.subviews.length;i++){
+                videoContainer.subviews[i].muteMicrophone(roomClient);
+            }
+        ]]>
+    </method>

        <!--
                This method returns an object of type videoObjectBroadcast
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/eventuserlist/eventUserListInner.lzx Tue Sep 6 11:06:13 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/eventuserlist/eventUserListInner.lzx Sun Sep 25 03:24:57 2011
@@ -199,6 +199,27 @@
             ]]>
         </handler>

+ <handler name="onmicMutedStatusChangedItem" reference="canvas" args="roomClientObj">
+            <![CDATA[
+
+ if ($debug) Debug.write(" :: onmicMutedStatusChangedItem :: ",roomClientObj.micMuted);
+
+                //search for the user and update its drawStatusIcon
+                var vList = parent._table.innerList.subviews;
+                for (var i=0;i<vList.length;i++) {
+                    //vList[i].updateIconByMod();
+ if (vList[i].refObj.publicSID == roomClientObj.publicSID) {
+                        vList[i].refObj.micMuted = roomClientObj.micMuted;
+                        vList[i].updateIconByMod();
+                        break;
+                    }
+                }
+
+                parent._applyAndStatusIcons.updateIcons();
+
+            ]]>
+        </handler>
+
<handler name="ondrawAllowStatus" reference="canvas" args="drawObject">
             <![CDATA[
                 //search for the user and update its drawStatusIcon
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/eventuserlist/moderationMiniIcons.lzx Sun Sep 25 02:55:37 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/eventuserlist/moderationMiniIcons.lzx Sun Sep 25 03:24:57 2011
@@ -72,6 +72,16 @@
                                
this._denyRemote.setAttribute("visibility","visible");
                        }
         }
+
+ if ($debug) Debug.write("onmicMutedStatusChangedItem :3: ",this.refObj.micMuted);
+
+        if (parent.refObj.micMuted) {
+            this._mute._text.setAttribute("labelid",1408);
+            this._mute.setAttribute("frame",2);
+        } else {
+            this._mute._text.setAttribute("labelid",1407);
+            this._mute.setAttribute("frame",1);
+        }

                if (parent.refObj.isBroadcasting) {
                        this._allowDevice.setAttribute("visibility","hidden");
@@ -251,6 +261,19 @@
         <labelTooltip labelid="684" />
     </miniIcons>

+ <miniIcons name="_mute" x="60" width="16" height="16" resource="mute_micro_btn_rsc" showhandcursor="true" >
+        <handler name="onclick">
+            <![CDATA[
+                if (canvas.ismoderator) {
+ canvas.thishib.switchMicMuted.setMute(parent.parent.refObj.publicSID,!parent.parent.refObj.micMuted);
+                } else {
+                    new lz.labelerrorPopup(canvas,{errorlabelid:1409});
+                }
+            ]]>
+        </handler>
+        <labelTooltip name="_text" text="" labelid="1407" />
+    </miniIcons>
+
     <!--
     <miniIcons name="_giveExclusiveAudio" x="60" width="16" height="16"
                resource="mic_rsc" showhandcursor="true">
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/video/baseVideoObject.lzx Sun Sep 25 02:55:37 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/video/baseVideoObject.lzx Sun Sep 25 03:24:57 2011
@@ -53,16 +53,6 @@

        <handler name="onisremote" args="r">
                this.isremote = r;
-                //the mute attribute may not exist
-               if (r) {
-                       //this.message.setAttribute('visibility','hidden');
-                       
this._toolbar.showuser.setAttribute('visibility','visible');
-                       
//this._toolbar._mute.setAttribute('visibility','visible')
-               } else {
-                       //this.message.setAttribute('visibility','visible');
-                       
this._toolbar.showuser.setAttribute('visibility','hidden');
-                       
//this._toolbar._mute.setAttribute('visibility','hidden')
-               }
        </handler>

     <handler name="oninit">

--
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to