fix(conference) Remove the check for multi-stream mode for web client.

This commit is contained in:
Jaya Allamsetty 2022-11-18 16:20:29 -05:00
parent a795e0797a
commit e93c480e7c
1 changed files with 6 additions and 26 deletions

View File

@ -55,10 +55,7 @@ import {
p2pStatusChanged, p2pStatusChanged,
sendLocalParticipant sendLocalParticipant
} from './react/features/base/conference'; } from './react/features/base/conference';
import { import { getReplaceParticipant } from './react/features/base/config/functions';
getMultipleVideoSendingSupportFeatureFlag,
getReplaceParticipant
} from './react/features/base/config/functions';
import { import {
checkAndNotifyForNewDevice, checkAndNotifyForNewDevice,
getAvailableDevices, getAvailableDevices,
@ -1422,30 +1419,13 @@ export default {
return; return;
} }
// In the multi-stream mode, add the track to the conference if there is no existing track, replace it // Add the track to the conference if there is no existing track, replace it otherwise.
// otherwise. const trackAction = oldTrack
if (getMultipleVideoSendingSupportFeatureFlag(state)) { ? replaceLocalTrack(oldTrack, newTrack, room)
const trackAction = oldTrack : addLocalTrack(newTrack);
? replaceLocalTrack(oldTrack, newTrack, room)
: addLocalTrack(newTrack);
APP.store.dispatch(trackAction) APP.store.dispatch(trackAction)
.then(() => {
this.setVideoMuteStatus();
})
.then(resolve)
.catch(error => {
logger.error(`useVideoStream failed: ${error}`);
reject(error);
})
.then(onFinish);
return;
}
APP.store.dispatch(
replaceLocalTrack(oldTrack, newTrack, room))
.then(() => { .then(() => {
this._setSharingScreen(newTrack);
this.setVideoMuteStatus(); this.setVideoMuteStatus();
}) })
.then(resolve) .then(resolve)