|
@@ -3,7 +3,10 @@
|
3
|
3
|
import _ from 'lodash';
|
4
|
4
|
|
5
|
5
|
import { getCurrentConference } from '../conference';
|
6
|
|
-import { getMultipleVideoSupportFeatureFlag } from '../config';
|
|
6
|
+import {
|
|
7
|
+ getMultipleVideoSendingSupportFeatureFlag,
|
|
8
|
+ getMultipleVideoSupportFeatureFlag
|
|
9
|
+} from '../config/functions.any';
|
7
|
10
|
import { StateListenerRegistry } from '../redux';
|
8
|
11
|
|
9
|
12
|
import { createVirtualScreenshareParticipant, participantLeft } from './actions';
|
|
@@ -47,12 +50,14 @@ function _updateScreenshareParticipants({ getState, dispatch }) {
|
47
|
50
|
return acc;
|
48
|
51
|
}, []);
|
49
|
52
|
|
50
|
|
- if (!localScreenShare && newLocalSceenshareSourceName) {
|
51
|
|
- dispatch(createVirtualScreenshareParticipant(newLocalSceenshareSourceName, true));
|
52
|
|
- }
|
|
53
|
+ if (getMultipleVideoSendingSupportFeatureFlag(state)) {
|
|
54
|
+ if (!localScreenShare && newLocalSceenshareSourceName) {
|
|
55
|
+ dispatch(createVirtualScreenshareParticipant(newLocalSceenshareSourceName, true));
|
|
56
|
+ }
|
53
|
57
|
|
54
|
|
- if (localScreenShare && !newLocalSceenshareSourceName) {
|
55
|
|
- dispatch(participantLeft(localScreenShare.id, conference, undefined, true));
|
|
58
|
+ if (localScreenShare && !newLocalSceenshareSourceName) {
|
|
59
|
+ dispatch(participantLeft(localScreenShare.id, conference, undefined, true));
|
|
60
|
+ }
|
56
|
61
|
}
|
57
|
62
|
|
58
|
63
|
const removedScreenshareSourceNames = _.difference(previousScreenshareSourceNames, currentScreenshareSourceNames);
|