Call this method if you added extra streams or removed streams from existing peer connection
// for all users connection.renegotiate(); // for single user connection.renegotiate('remote-user-id');
Please check replaceTrack which provides a more reliable implementation.