瀏覽代碼

Merge pull request #330 from jitsi/remove-rtcp-mux-from-config

Removes the useBundle and useRtcpMux options from config.js. These are
master
bgrozev 10 年之前
父節點
當前提交
fdb470d22f
共有 4 個文件被更改,包括 8 次插入16 次删除
  1. 0
    2
      config.js
  2. 2
    4
      modules/RTC/RTCUtils.js
  3. 1
    3
      modules/statistics/CallStats.js
  4. 5
    7
      modules/xmpp/strophe.jingle.js

+ 0
- 2
config.js 查看文件

@@ -26,8 +26,6 @@ var config = {
26 26
     channelLastN: -1, // The default value of the channel attribute last-n.
27 27
     adaptiveLastN: false,
28 28
     adaptiveSimulcast: false,
29
-    useRtcpMux: true, // required for FF support
30
-    useBundle: true, // required for FF support
31 29
     enableRecording: false,
32 30
     enableWelcomePage: true,
33 31
     enableSimulcast: false, // blocks FF support

+ 2
- 4
modules/RTC/RTCUtils.js 查看文件

@@ -151,7 +151,7 @@ function RTCUtils(RTCService, onTemasysPluginReady)
151 151
     this.service = RTCService;
152 152
     if (RTCBrowserType.isFirefox()) {
153 153
         var FFversion = RTCBrowserType.getFirefoxVersion();
154
-        if (FFversion >= 40 && config.useBundle && config.useRtcpMux) {
154
+        if (FFversion >= 40) {
155 155
             this.peerconnection = mozRTCPeerConnection;
156 156
             this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
157 157
             this.pc_constraints = {};
@@ -192,9 +192,7 @@ function RTCUtils(RTCService, onTemasysPluginReady)
192 192
             RTCIceCandidate = mozRTCIceCandidate;
193 193
         } else {
194 194
             console.error(
195
-                "Firefox requirements not met, ver: " + FFversion +
196
-                ", bundle: " + config.useBundle +
197
-                ", rtcp-mux: " + config.useRtcpMux);
195
+                "Firefox version too old: " + FFversion + ". Required >= 40.");
198 196
             window.location.href = 'unsupported_browser.html';
199 197
             return;
200 198
         }

+ 1
- 3
modules/statistics/CallStats.js 查看文件

@@ -28,9 +28,7 @@ var CallStats = {
28 28
             this.userID,
29 29
             initCallback);
30 30
 
31
-        var usage = callStats.fabricUsage.unbundled;
32
-        if(config.useBundle)
33
-            usage = callStats.fabricUsage.multiplex;
31
+        var usage = callStats.fabricUsage.multiplex;
34 32
 
35 33
         callStats.addNewFabric(this.peerconnection,
36 34
             Strophe.getResourceFromJid(jingleSession.peerjid),

+ 5
- 7
modules/xmpp/strophe.jingle.js 查看文件

@@ -54,15 +54,13 @@ module.exports = function(XMPP, eventEmitter) {
54 54
                     this.connection.disco.addFeature('urn:ietf:rfc:4588');
55 55
                 }
56 56
 
57
-                // this is dealt with by SDP O/A so we don't need to annouce this
57
+                // this is dealt with by SDP O/A so we don't need to announce this
58 58
                 //this.connection.disco.addFeature('urn:xmpp:jingle:apps:rtp:rtcp-fb:0'); // XEP-0293
59 59
                 //this.connection.disco.addFeature('urn:xmpp:jingle:apps:rtp:rtp-hdrext:0'); // XEP-0294
60
-                if (config.useRtcpMux) {
61
-                    this.connection.disco.addFeature('urn:ietf:rfc:5761'); // rtcp-mux
62
-                }
63
-                if (config.useBundle) {
64
-                    this.connection.disco.addFeature('urn:ietf:rfc:5888'); // a=group, e.g. bundle
65
-                }
60
+
61
+                this.connection.disco.addFeature('urn:ietf:rfc:5761'); // rtcp-mux
62
+                this.connection.disco.addFeature('urn:ietf:rfc:5888'); // a=group, e.g. bundle
63
+
66 64
                 //this.connection.disco.addFeature('urn:ietf:rfc:5576'); // a=ssrc
67 65
             }
68 66
             this.connection.addHandler(this.onJingle.bind(this), 'urn:xmpp:jingle:1', 'iq', 'set', null, null);

Loading…
取消
儲存