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
feat(recording) add ability to change recording defaults
Saúl Ibarra Corretgéb7785a9f91c9
diff --git a/config.js b/config.jsindex e3e89a070e..e2eb12a3ae 100644--- a/config.js+++ b/config.js@@ -329,6 +329,8 @@ var config = {// configuration for all things recording related. Existing settings will be migrated here in the future.// recordings: {+ // // IF true (default) recording audio and video is selected by default in the recording dialog.+ // // recordAudioAndVideo: true,// // If true, shows a notification at the start of the meeting with a call to action button// // to start recording (for users who can do so).// // suggestRecording: true,diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.tsindex 6ce48ef697..63e64fe239 100644--- a/react/features/base/config/configType.ts+++ b/react/features/base/config/configType.ts@@ -496,6 +496,7 @@ export interface IConfig {};recordingSharingUrl?: string;recordings?: {+ recordAudioAndVideo?: boolean;showPrejoinWarning?: boolean;suggestRecording?: boolean;};diff --git a/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts b/react/features/recording/components/Recording/AbstractStartRecordingDialog.tsindex be09cf06ca..ec96ee4abc 100644--- a/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts+++ b/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts@@ -64,6 +64,11 @@ export interface IProps extends WithTranslation {*/_rToken: string;+ /**+ * Whether the record audio / video option is enabled by default.+ */+ _recordAudioAndVideo: boolean;+/*** Whether or not the local participant is screensharing.*/@@ -187,7 +192,7 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {isValidating: false,userName: undefined,sharingEnabled: true,- shouldRecordAudioAndVideo: true,+ shouldRecordAudioAndVideo: this.props._recordAudioAndVideo,shouldRecordTranscription: this.props._autoTranscribeOnRecord,spaceLeft: undefined,selectedRecordingService,@@ -452,7 +457,8 @@ export function mapStateToProps(state: IReduxState, _ownProps: any) {const {recordingService,dropbox = { appKey: undefined },- localRecording+ localRecording,+ recordings = { recordAudioAndVideo: true }} = state['features/base/config'];const {_displaySubtitles,@@ -469,6 +475,7 @@ export function mapStateToProps(state: IReduxState, _ownProps: any) {_isDropboxEnabled: isDropboxEnabled(state),_localRecordingEnabled: !localRecording?.disable,_rToken: state['features/dropbox'].rToken ?? '',+ _recordAudioAndVideo: recordings?.recordAudioAndVideo ?? true,_subtitlesLanguage,_tokenExpireDate: state['features/dropbox'].expireDate,_token: state['features/dropbox'].token ?? ''