fix(conference) Remove the check for multi-stream mode for web client.
This commit is contained in:
parent
a795e0797a
commit
e93c480e7c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue