From 5d571e696f9612964f6573783c57950c51a585fa Mon Sep 17 00:00:00 2001 From: George Politis Date: Fri, 23 Oct 2015 09:32:29 -0500 Subject: [PATCH] Sets up simulcast for 2 layers. --- modules/xmpp/TraceablePeerConnection.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/xmpp/TraceablePeerConnection.js b/modules/xmpp/TraceablePeerConnection.js index 4e05a2811..56bba8944 100644 --- a/modules/xmpp/TraceablePeerConnection.js +++ b/modules/xmpp/TraceablePeerConnection.js @@ -25,7 +25,7 @@ function TraceablePeerConnection(ice_config, constraints, session) { var Interop = require('sdp-interop').Interop; this.interop = new Interop(); var Simulcast = require('sdp-simulcast'); - this.simulcast = new Simulcast({numOfLayers: 3, explodeRemoteSimulcast: false}); + this.simulcast = new Simulcast({numOfLayers: 2, explodeRemoteSimulcast: false}); // override as desired this.trace = function (what, info) { @@ -218,6 +218,8 @@ if (TraceablePeerConnection.prototype.__defineGetter__ !== undefined) { function() { var desc = this.peerconnection.localDescription; + // TODO this should be after the Unified Plan -> Plan B + // transformation. desc = SSRCReplacement.mungeLocalVideoSSRC(desc); this.trace('getLocalDescription::preTransform', dumpSDP(desc));