|
@@ -269,6 +269,13 @@ export class TPCUtils {
|
269
|
269
|
this.setEncodings(localTrack);
|
270
|
270
|
this.pc.localTracks.set(localTrack.rtcId, localTrack);
|
271
|
271
|
transceiver.direction = 'sendrecv';
|
|
272
|
+
|
|
273
|
+ // Construct the simulcast stream constraints for the newly added track.
|
|
274
|
+ if (localTrack.isVideoTrack()
|
|
275
|
+ && localTrack.videoType === VideoType.CAMERA
|
|
276
|
+ && this.pc.isSimulcastOn()) {
|
|
277
|
+ this.setSimulcastStreamConstraints(localTrack.getTrack());
|
|
278
|
+ }
|
272
|
279
|
}
|
273
|
280
|
|
274
|
281
|
return Promise.resolve(false);
|