Browse Source

Updates a call to setMute().

master
bgrozev 10 years ago
parent
commit
a7058747ac
1 changed files with 3 additions and 6 deletions
  1. 3
    6
      modules/RTC/RTC.js

+ 3
- 6
modules/RTC/RTC.js View File

@@ -72,14 +72,11 @@ var RTC = {
72 72
             this.localStreams[0].getOriginalStream() != stream)
73 73
             this.localStreams.push(localStream);
74 74
         if(isMuted === true)
75
-            localStream.setMute(false);
75
+            localStream.setMute(true);
76 76
 
77
-        if(type == "audio")
78
-        {
77
+        if(type == "audio") {
79 78
             this.localAudio = localStream;
80
-        }
81
-        else
82
-        {
79
+        } else {
83 80
             this.localVideo = localStream;
84 81
         }
85 82
         var eventType = StreamEventTypes.EVENT_TYPE_LOCAL_CREATED;

Loading…
Cancel
Save