浏览代码

Sets up simulcast for 2 layers.

master
George Politis 10 年前
父节点
当前提交
5d571e696f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      modules/xmpp/TraceablePeerConnection.js

+ 3
- 1
modules/xmpp/TraceablePeerConnection.js 查看文件

@@ -25,7 +25,7 @@ function TraceablePeerConnection(ice_config, constraints, session) {
25 25
     var Interop = require('sdp-interop').Interop;
26 26
     this.interop = new Interop();
27 27
     var Simulcast = require('sdp-simulcast');
28
-    this.simulcast = new Simulcast({numOfLayers: 3, explodeRemoteSimulcast: false});
28
+    this.simulcast = new Simulcast({numOfLayers: 2, explodeRemoteSimulcast: false});
29 29
 
30 30
     // override as desired
31 31
     this.trace = function (what, info) {
@@ -218,6 +218,8 @@ if (TraceablePeerConnection.prototype.__defineGetter__ !== undefined) {
218 218
         function() {
219 219
             var desc = this.peerconnection.localDescription;
220 220
 
221
+            // TODO this should be after the Unified Plan -> Plan B
222
+            // transformation.
221 223
             desc = SSRCReplacement.mungeLocalVideoSSRC(desc);
222 224
 
223 225
             this.trace('getLocalDescription::preTransform', dumpSDP(desc));

正在加载...
取消
保存