浏览代码

Initialize 'videomuted' presence with 'false'

dev1
paweldomas 9 年前
父节点
当前提交
b54d095e2d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      modules/xmpp/ChatRoom.js

+ 3
- 1
modules/xmpp/ChatRoom.js 查看文件

@@ -96,7 +96,9 @@ ChatRoom.prototype.initPresenceMap = function () {
96 96
         "value": navigator.userAgent,
97 97
         "attributes": {xmlns: 'http://jitsi.org/jitmeet/user-agent'}
98 98
     });
99
-
99
+    // We need to broadcast 'videomuted' status from the beginning, cause Jicofo
100
+    // makes decisions based on that. Initialize it with 'false' here.
101
+    this.addVideoInfoToPresence(false);
100 102
 };
101 103
 
102 104
 ChatRoom.prototype.updateDeviceAvailability = function (devices) {

正在加载...
取消
保存