Переглянути джерело

feat: enable lipsync by default

master
paweldomas 9 роки тому
джерело
коміт
448330cdbe
2 змінених файлів з 6 додано та 8 видалено
  1. 5
    7
      modules/xmpp/moderator.js
  2. 1
    1
      modules/xmpp/xmpp.js

+ 5
- 7
modules/xmpp/moderator.js Переглянути файл

@@ -174,13 +174,11 @@ Moderator.prototype.createConferenceIq =  function () {
174 174
                 value: true
175 175
             }).up();
176 176
     //}
177
-    if (this.options.connection.enableLipSync !== undefined) {
178
-        elem.c(
179
-            'property', {
180
-                name: 'enableLipSync',
181
-                value: this.options.connection.enableLipSync
182
-            }).up();
183
-    }
177
+    elem.c(
178
+        'property', {
179
+            name: 'enableLipSync',
180
+            value: false !== this.options.connection.enableLipSync
181
+        }).up();
184 182
     if (this.options.conference.audioPacketDelay !== undefined) {
185 183
         elem.c(
186 184
             'property', {

+ 1
- 1
modules/xmpp/xmpp.js Переглянути файл

@@ -122,7 +122,7 @@ XMPP.prototype.initFeaturesList = function () {
122 122
         //disco.addFeature('urn:ietf:rfc:5576'); // a=ssrc
123 123
 
124 124
         // Enable Lipsync ?
125
-        if (this.options.enableLipSync && RTCBrowserType.isChrome()) {
125
+        if (RTCBrowserType.isChrome() && false !== this.options.enableLipSync) {
126 126
             logger.info("Lip-sync enabled !");
127 127
             this.connection.disco.addFeature('http://jitsi.org/meet/lipsync');
128 128
         }

Завантаження…
Відмінити
Зберегти