Revision: 4287
Author:   seba.wagner
Date:     Sun Sep 25 02:08:25 2011
Log:      Fixes: Only implement "Mute-Globally". "Mute-Locally" is disabled.
http://code.google.com/p/openmeetings/source/detail?r=4287

Modified:
/trunk/singlewebapp/WebContent/openmeetings/modules/conference/video/baseVideoObject.lzx /trunk/singlewebapp/WebContent/openmeetings/modules/conference/video/editRecordStream.lzx

=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/video/baseVideoObject.lzx Mon Sep 19 07:29:30 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/video/baseVideoObject.lzx Sun Sep 25 02:08:25 2011
@@ -424,7 +424,8 @@
             <labelTooltip name="_tip" labelid="540" />
         </miniIconsPresenter>

- <miniIconsPresenter name="_mute" width="16" height="16" iconRessourceName="mute_micro_btn_rsc"> + <miniIconsPresenter name="_mute" width="16" height="16" iconRessourceName="mute_micro_btn_rsc" + visible="${ (canvas.ismoderator || (parent.parent.publicSID == canvas.publicSID)) }">
             <handler name="onclick">
                 parent.parent.silenceMicrophone(!parent.parent.micMuted);
             </handler>
@@ -489,7 +490,8 @@

if ($debug) Debug.write("############ muteMicrophone ",roomClientObj.micMuted);

-        if (this.publicSID == canvas.publicSID) {
+        if (roomClientObj.publicSID == canvas.publicSID) {
+ if ($debug) Debug.write("Set Mute for Client :: ",roomClientObj.username);
             if (roomClientObj.micMuted) {
                if ($debug) Debug.write("############ SET GAIN 0");
                 this._chatvideoinner._videostream.micro.setGain(0);
@@ -497,6 +499,8 @@
                if ($debug) Debug.write("############ SET GAIN 50");
                 this._chatvideoinner._videostream.micro.setGain(50);
             }
+            this.isMutedByModerator = roomClientObj.micMuted;
+            this.setMicMuted(roomClientObj.micMuted);
         } else {
                if (!roomClientObj.micMuted) {
                        //Make sure sound is on, in case a user has set it 
locally to 0
@@ -504,8 +508,6 @@
                    this._chatvideoinner._videostream.setVolume(100);
                }
         }
-        this.isMutedByModerator = roomClientObj.micMuted;
-        this.setMicMuted(roomClientObj.micMuted);
         ]]>
     </method>

=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/video/editRecordStream.lzx Sat Sep 17 08:15:38 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/video/editRecordStream.lzx Sun Sep 25 02:08:25 2011
@@ -122,6 +122,8 @@
                        var _micro = Microphone.get(valMic);
//always to default gain to 50 because the Flash Plugin will remember the last time you've set the value
                        _micro.setGain(50);
+                       //Microphone setUseEchoSupression(bool)
+                       _micro.setUseEchoSuppression(true);
                        var _camera = Camera.get(valCam);
if ($debug) Debug.write("_camera.setMode: ",videoview.width,videoview.height,canvas.framesPerSecond,true);

@@ -147,9 +149,6 @@
_camera.setQuality(canvas.bandwidthNeededNormal,canvas.camQualityNormal);
                        }

-                       //Microphone setUseEchoSupression(bool)
-                   _micro.setUseEchoSuppression(true);
-
                switch (settings){
                 case "s":
this.myvideocontainer.setAttribute("visibility","hidden");

--
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