瀏覽代碼

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

Loading…
取消
儲存