Quellcode durchsuchen

Advertises rtcp-mux and BUNDLE if it's enabled.

master
paweldomas vor 10 Jahren
Ursprung
Commit
4efad3d3da
1 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
  1. 6
    2
      libs/strophe/strophe.jingle.js

+ 6
- 2
libs/strophe/strophe.jingle.js Datei anzeigen

30
             // this is dealt with by SDP O/A so we don't need to annouce this
30
             // this is dealt with by SDP O/A so we don't need to annouce this
31
             //this.connection.disco.addFeature('urn:xmpp:jingle:apps:rtp:rtcp-fb:0'); // XEP-0293
31
             //this.connection.disco.addFeature('urn:xmpp:jingle:apps:rtp:rtcp-fb:0'); // XEP-0293
32
             //this.connection.disco.addFeature('urn:xmpp:jingle:apps:rtp:rtp-hdrext:0'); // XEP-0294
32
             //this.connection.disco.addFeature('urn:xmpp:jingle:apps:rtp:rtp-hdrext:0'); // XEP-0294
33
-            this.connection.disco.addFeature('urn:ietf:rfc:5761'); // rtcp-mux
34
-            //this.connection.disco.addFeature('urn:ietf:rfc:5888'); // a=group, e.g. bundle
33
+            if (config.useRtcpMux) {
34
+                this.connection.disco.addFeature('urn:ietf:rfc:5761'); // rtcp-mux
35
+            }
36
+            if (config.useBundle) {
37
+                this.connection.disco.addFeature('urn:ietf:rfc:5888'); // a=group, e.g. bundle
38
+            }
35
             //this.connection.disco.addFeature('urn:ietf:rfc:5576'); // a=ssrc
39
             //this.connection.disco.addFeature('urn:ietf:rfc:5576'); // a=ssrc
36
         }
40
         }
37
         this.connection.addHandler(this.onJingle.bind(this), 'urn:xmpp:jingle:1', 'iq', 'set', null, null);
41
         this.connection.addHandler(this.onJingle.bind(this), 'urn:xmpp:jingle:1', 'iq', 'set', null, null);

Laden…
Abbrechen
Speichern