Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

paweldomas4efad3d3dac0
diff --git a/libs/strophe/strophe.jingle.js b/libs/strophe/strophe.jingle.js
index b157024110..20f456f5e2 100644
--- a/libs/strophe/strophe.jingle.js
+++ b/libs/strophe/strophe.jingle.js
@@ -30,8 +30,12 @@ Strophe.addConnectionPlugin('jingle', {
// this is dealt with by SDP O/A so we don't need to annouce this
//this.connection.disco.addFeature('urn:xmpp:jingle:apps:rtp:rtcp-fb:0'); // XEP-0293
//this.connection.disco.addFeature('urn:xmpp:jingle:apps:rtp:rtp-hdrext:0'); // XEP-0294
- this.connection.disco.addFeature('urn:ietf:rfc:5761'); // rtcp-mux
- //this.connection.disco.addFeature('urn:ietf:rfc:5888'); // a=group, e.g. bundle
+ if (config.useRtcpMux) {
+ this.connection.disco.addFeature('urn:ietf:rfc:5761'); // rtcp-mux
+ }
+ if (config.useBundle) {
+ this.connection.disco.addFeature('urn:ietf:rfc:5888'); // a=group, e.g. bundle
+ }
//this.connection.disco.addFeature('urn:ietf:rfc:5576'); // a=ssrc
}
this.connection.addHandler(this.onJingle.bind(this), 'urn:xmpp:jingle:1', 'iq', 'set', null, null);