浏览代码

Renames a variable/field for the purposes of clarity.

master
Lyubomir Marinov 11 年前
父节点
当前提交
4230aa1ff1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      libs/strophe/strophe.jingle.sessionbase.js

+ 3
- 3
libs/strophe/strophe.jingle.sessionbase.js 查看文件

@@ -13,7 +13,7 @@ function SessionBase(connection, sid) {
13 13
      * in response to a user command in contrast to an automatic decision made
14 14
      * by the application logic.
15 15
      */
16
-    this.muteByUser = true;
16
+    this.videoMuteByUser = false;
17 17
 }
18 18
 
19 19
 
@@ -285,8 +285,8 @@ SessionBase.prototype.setVideoMute = function (mute, callback, options) {
285 285
     // The user's command to mute the (local) video takes precedence over any
286 286
     // automatic decision made by the application logic.
287 287
     if (byUser) {
288
-        this.muteByUser = mute;
289
-    } else if (this.muteByUser) {
288
+        this.videoMuteByUser = mute;
289
+    } else if (this.videoMuteByUser) {
290 290
         return;
291 291
     }
292 292
     if (mute == this.isVideoMute())

正在加载...
取消
保存