Sets up simulcast for 2 layers.

This commit is contained in:
George Politis 2015-10-23 09:32:29 -05:00
parent ce397d9e74
commit 5d571e696f
1 changed files with 3 additions and 1 deletions

View File

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