fix(screenshot-capture): Move the flag for enabling/disabling the feature to config.js
This will let us enable/disable the feature based on environment/deployment
This commit is contained in:
parent
ed5351d250
commit
9855fac805
|
@ -1460,8 +1460,9 @@ export default {
|
|||
} else {
|
||||
promise = promise.then(() => this.useVideoStream(null));
|
||||
}
|
||||
|
||||
APP.store.dispatch(toggleScreenshotCaptureEffect(false));
|
||||
if (config.enableScreenshotCapture) {
|
||||
APP.store.dispatch(toggleScreenshotCaptureEffect(false));
|
||||
}
|
||||
|
||||
return promise.then(
|
||||
() => {
|
||||
|
@ -1734,7 +1735,9 @@ export default {
|
|||
.then(stream => this.useVideoStream(stream))
|
||||
.then(() => {
|
||||
this.videoSwitchInProgress = false;
|
||||
APP.store.dispatch(toggleScreenshotCaptureEffect(true));
|
||||
if (config.enableScreenshotCapture) {
|
||||
APP.store.dispatch(toggleScreenshotCaptureEffect(true));
|
||||
}
|
||||
sendAnalytics(createScreenSharingEvent('started'));
|
||||
logger.log('Screen sharing started');
|
||||
})
|
||||
|
|
|
@ -190,11 +190,6 @@ var interfaceConfig = {
|
|||
*/
|
||||
AUTO_PIN_LATEST_SCREEN_SHARE: 'remote-only',
|
||||
|
||||
/**
|
||||
* If we should capture periodic screenshots of the content sharing.
|
||||
*/
|
||||
ENABLE_SCREENSHOT_CAPTURE: false,
|
||||
|
||||
/**
|
||||
* If true, presence status: busy, calling, connected etc. is not displayed.
|
||||
*/
|
||||
|
|
|
@ -96,6 +96,7 @@ export default [
|
|||
'enableLayerSuspension',
|
||||
'enableLipSync',
|
||||
'enableRemb',
|
||||
'enableScreenshotCapture',
|
||||
'enableTalkWhileMuted',
|
||||
'enableNoAudioDetection',
|
||||
'enableNoisyMicDetection',
|
||||
|
|
|
@ -57,11 +57,7 @@ export default class ScreenshotCaptureEffect {
|
|||
* @returns {boolean} - Returns true if this effect can run on the specified track, false otherwise.
|
||||
*/
|
||||
isEnabled(jitsiLocalTrack: Object) {
|
||||
return (
|
||||
interfaceConfig.ENABLE_SCREENSHOT_CAPTURE
|
||||
&& jitsiLocalTrack.isVideoTrack()
|
||||
&& jitsiLocalTrack.videoType === 'desktop'
|
||||
);
|
||||
return jitsiLocalTrack.isVideoTrack() && jitsiLocalTrack.videoType === 'desktop';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue