|
|
|
|
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);
|