fix(screen-capture): disable.
This commit is contained in:
parent
8c7243fda0
commit
6b2364f575
|
@ -476,7 +476,9 @@ function initCommands() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isScreenVideoShared(APP.store.getState())) {
|
const enableScreenshotCapture = state['features/base/config'].enableScreenshotCapture;
|
||||||
|
|
||||||
|
if (enableScreenshotCapture && isScreenVideoShared(state)) {
|
||||||
APP.store.dispatch(toggleScreenshotCaptureSummary(true));
|
APP.store.dispatch(toggleScreenshotCaptureSummary(true));
|
||||||
}
|
}
|
||||||
conference.startRecording(recordingConfig);
|
conference.startRecording(recordingConfig);
|
||||||
|
@ -507,7 +509,9 @@ function initCommands() {
|
||||||
const activeSession = getActiveSession(state, mode);
|
const activeSession = getActiveSession(state, mode);
|
||||||
|
|
||||||
if (activeSession && activeSession.id) {
|
if (activeSession && activeSession.id) {
|
||||||
APP.store.dispatch(toggleScreenshotCaptureSummary(false));
|
if (state['features/base/config'].enableScreenshotCapture) {
|
||||||
|
APP.store.dispatch(toggleScreenshotCaptureSummary(false));
|
||||||
|
}
|
||||||
conference.stopRecording(activeSession.id);
|
conference.stopRecording(activeSession.id);
|
||||||
} else {
|
} else {
|
||||||
logger.error('No recording or streaming session found');
|
logger.error('No recording or streaming session found');
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { connect } from '../../../../base/redux';
|
||||||
import { toggleScreenshotCaptureSummary } from '../../../../screenshot-capture';
|
import { toggleScreenshotCaptureSummary } from '../../../../screenshot-capture';
|
||||||
import AbstractStopRecordingDialog, {
|
import AbstractStopRecordingDialog, {
|
||||||
type Props,
|
type Props,
|
||||||
_mapStateToProps
|
_mapStateToProps as abstractMapStateToProps
|
||||||
} from '../AbstractStopRecordingDialog';
|
} from '../AbstractStopRecordingDialog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,8 +46,25 @@ class StopRecordingDialog extends AbstractStopRecordingDialog<Props> {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
_toggleScreenshotCapture() {
|
_toggleScreenshotCapture() {
|
||||||
this.props.dispatch(toggleScreenshotCaptureSummary(false));
|
const { dispatch, _screenshotCaptureEnabled } = this.props;
|
||||||
|
|
||||||
|
if (_screenshotCaptureEnabled) {
|
||||||
|
dispatch(toggleScreenshotCaptureSummary(false));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maps redux state to component props.
|
||||||
|
*
|
||||||
|
* @param {Object} state - Redux state.
|
||||||
|
* @returns {Object}
|
||||||
|
*/
|
||||||
|
function _mapStateToProps(state) {
|
||||||
|
return {
|
||||||
|
...abstractMapStateToProps(state),
|
||||||
|
_screenshotCaptureEnabled: state['features/base/config'].enableScreenshotCapture
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export default translate(connect(_mapStateToProps)(StopRecordingDialog));
|
export default translate(connect(_mapStateToProps)(StopRecordingDialog));
|
||||||
|
|
Loading…
Reference in New Issue