|
@@ -1980,8 +1980,8 @@ TraceablePeerConnection.prototype.replaceTrack = function(oldTrack, newTrack) {
|
1980
|
1980
|
? Promise.resolve()
|
1981
|
1981
|
: this.tpcUtils.setEncodings(newTrack);
|
1982
|
1982
|
|
1983
|
|
- // Renegotiate only in the case of P2P. We rely on 'negotiationeeded' to be fired for JVB.
|
1984
|
|
- return configureEncodingsPromise.then(() => this.isP2P || negotiationNeeded);
|
|
1983
|
+ // Force renegotiation only when the source is added for the first time.
|
|
1984
|
+ return configureEncodingsPromise.then(() => negotiationNeeded);
|
1985
|
1985
|
});
|
1986
|
1986
|
}
|
1987
|
1987
|
|