You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by co...@google.com on 2013/02/21 08:59:21 UTC

[red5phone] r95 committed - Mic switched flag is now changed only for current client

Revision: 95
Author:   solomax666@gmail.com
Date:     Wed Feb 20 23:59:07 2013
Log:      Mic switched flag is now changed only for current client
http://code.google.com/p/red5phone/source/detail?r=95

Modified:
  /branches/red5sip/src/java/org/red5/sip/app/RTMPRoomClient.java

=======================================
--- /branches/red5sip/src/java/org/red5/sip/app/RTMPRoomClient.java	Tue Feb  
19 11:33:08 2013
+++ /branches/red5sip/src/java/org/red5/sip/app/RTMPRoomClient.java	Wed Feb  
20 23:59:07 2013
@@ -330,8 +330,10 @@
                      this.conn.close();
                  } else if("updateMuteStatus".equals(msgValue.get(0))) {
                      Client client = (Client)msgValue.get(1);
-                    log.info("Mic switched: " + client.getMicMuted());
-                    this.micMuted = client.getMicMuted();
+                    if (this.publicSID.equals(client.getPublicSID())) {
+	                    log.info("Mic switched: " + client.getMicMuted());
+	                    this.micMuted = client.getMicMuted();
+                    }
                  }
              } catch (Exception ignored) {}
          }