Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(local-recording) Improvements (#11854)
Robert Pintiliieb20e85166ee
diff --git a/config.js b/config.jsindex db8ac8b340..aceb26a0d2 100644--- a/config.js+++ b/config.js@@ -314,8 +314,12 @@ var config = {// localRecording: {// // Whether to disable local recording or not.// disable: false,+// // Whether to notify all participants when a participant is recording locally.- // notifyAllParticipants: false+ // notifyAllParticipants: false,++ // // Whether to disable the self recording feature (only local participant streams).+ // disableSelfRecording: false// },// DEPRECATED. Use transcription.enabled instead.diff --git a/lang/main.json b/lang/main.jsonindex 1238186725..df820cd858 100644--- a/lang/main.json+++ b/lang/main.json@@ -910,7 +910,7 @@"onlyRecordSelf": "Record only my audio and video streams","pending": "Preparing to record the meeting...","rec": "REC",- "saveLocalRecording": "Save recording file locally",+ "saveLocalRecording": "Save recording file locally (Beta)","serviceDescription": "Your recording will be saved by the recording service","serviceDescriptionCloud": "Cloud recording","serviceDescriptionCloudInfo": "Recorded meetings are automatically cleared 24h after their recording time.",diff --git a/react/features/recording/components/Recording/StartRecordingDialogContent.js b/react/features/recording/components/Recording/StartRecordingDialogContent.jsindex e3996e626d..93a98e5c79 100644--- a/react/features/recording/components/Recording/StartRecordingDialogContent.js+++ b/react/features/recording/components/Recording/StartRecordingDialogContent.js@@ -57,6 +57,11 @@ type Props = {*/_localRecordingNoNotification: boolean,+ /**+ * Whether self local recording is enabled or not.+ */+ _localRecordingSelfEnabled: boolean,+/*** The color-schemed stylesheet of this component.*/@@ -679,33 +684,35 @@ class StartRecordingDialogContent extends Component<Props> {</Container>{selectedRecordingService === RECORDING_TYPES.LOCAL && (<>- <Container>- <Container- className = 'recording-header space-top'- style = { styles.header }>- <Container className = 'recording-icon-container file-sharing-icon-container'>- <Image- className = 'recording-file-sharing-icon'- src = { ICON_USERS }- style = { styles.recordingIcon } />+ {this.props._localRecordingSelfEnabled && (+ <Container>+ <Container+ className = 'recording-header space-top'+ style = { styles.header }>+ <Container className = 'recording-icon-container file-sharing-icon-container'>+ <Image+ className = 'recording-file-sharing-icon'+ src = { ICON_USERS }+ style = { styles.recordingIcon } />+ </Container>+ <Text+ className = 'recording-title'+ style = {{+ ..._dialogStyles.text,+ ...styles.title+ }}>+ {t('recording.onlyRecordSelf')}+ </Text>+ <Switch+ className = 'recording-switch'+ disabled = { isValidating }+ onValueChange = { this.props.onLocalRecordingSelfChange }+ style = { styles.switch }+ trackColor = {{ false: TRACK_COLOR }}+ value = { this.props.localRecordingOnlySelf } /></Container>- <Text- className = 'recording-title'- style = {{- ..._dialogStyles.text,- ...styles.title- }}>- {t('recording.onlyRecordSelf')}- </Text>- <Switch- className = 'recording-switch'- disabled = { isValidating }- onValueChange = { this.props.onLocalRecordingSelfChange }- style = { styles.switch }- trackColor = {{ false: TRACK_COLOR }}- value = { this.props.localRecordingOnlySelf } /></Container>- </Container>+ )}<Text className = 'local-recording-warning text'>{t('recording.localRecordingWarning')}</Text>@@ -758,6 +765,7 @@ function _mapStateToProps(state) {isVpaas: isVpaasMeeting(state),_hideStorageWarning: state['features/base/config'].recording?.hideStorageWarning,_localRecordingEnabled: !state['features/base/config'].localRecording?.disable,+ _localRecordingSelfEnabled: !state['features/base/config'].localRecording?.disableSelfRecording,_localRecordingNoNotification: !state['features/base/config'].localRecording?.notifyAllParticipants,_styles: ColorSchemeRegistry.get(state, 'StartRecordingDialogContent')};