Browse Source

Initialize 'videomuted' presence with 'false'

master
paweldomas 9 years ago
parent
commit
b54d095e2d
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      modules/xmpp/ChatRoom.js

+ 3
- 1
modules/xmpp/ChatRoom.js View File

@@ -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…
Cancel
Save