Browse Source

Adds 'enableLipSync' and 'audioPacketDelay' config options

dev1
paweldomas 9 years ago
parent
commit
5594316003
2 changed files with 16 additions and 1 deletions
  1. 14
    0
      modules/xmpp/moderator.js
  2. 2
    1
      modules/xmpp/strophe.jingle.js

+ 14
- 0
modules/xmpp/moderator.js View File

@@ -174,6 +174,20 @@ Moderator.prototype.createConferenceIq =  function () {
174 174
                 value: true
175 175
             }).up();
176 176
     //}
177
+    if (this.options.conference.enableLipSync !== undefined) {
178
+        elem.c(
179
+            'property', {
180
+                name: 'enableLipSync',
181
+                value: this.options.conference.enableLipSync
182
+            }).up();
183
+    }
184
+    if (this.options.conference.audioPacketDelay !== undefined) {
185
+        elem.c(
186
+            'property', {
187
+                name: 'audioPacketDelay',
188
+                value: this.options.conference.audioPacketDelay
189
+            }).up();
190
+    }
177 191
     if (this.options.conference.startBitrate) {
178 192
         elem.c(
179 193
             'property', {

+ 2
- 1
modules/xmpp/strophe.jingle.js View File

@@ -34,7 +34,8 @@ module.exports = function(XMPP, eventEmitter) {
34 34
                 disco.addFeature('urn:xmpp:jingle:apps:rtp:video');
35 35
 
36 36
                 // Lipsync
37
-                if (RTCBrowserType.isChrome()) {
37
+                if (this.options.enableLipSync && RTCBrowserType.isChrome()) {
38
+                    logger.info("Lip-sync enabled !");
38 39
                     this.connection.disco.addFeature(
39 40
                         'http://jitsi.org/meet/lipsync');
40 41
                 }

Loading…
Cancel
Save