Browse Source

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

master
paweldomas 10 years ago
parent
commit
4efad3d3da
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      libs/strophe/strophe.jingle.js

+ 6
- 2
libs/strophe/strophe.jingle.js View File

@@ -30,8 +30,12 @@ Strophe.addConnectionPlugin('jingle', {
30 30
             // this is dealt with by SDP O/A so we don't need to annouce this
31 31
             //this.connection.disco.addFeature('urn:xmpp:jingle:apps:rtp:rtcp-fb:0'); // XEP-0293
32 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 39
             //this.connection.disco.addFeature('urn:ietf:rfc:5576'); // a=ssrc
36 40
         }
37 41
         this.connection.addHandler(this.onJingle.bind(this), 'urn:xmpp:jingle:1', 'iq', 'set', null, null);

Loading…
Cancel
Save