Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(recording): Show a specific error when the request is invalid (#18166)

bgrozev1e528af256c5
diff --git a/lang/main.json b/lang/main.json
index b3520a134a..46daccbb53 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -758,6 +758,7 @@
"showMeWhatImSharing": "Show me what I'm sharing"
},
"liveStreaming": {
+ "badRequest": "The live stream request is not valid. Check the stream key and the stream settings.",
"busy": "We're working on freeing streaming resources. Please try again in a few minutes.",
"busyTitle": "All streamers are currently busy",
"changeSignIn": "Switch accounts.",
@@ -1224,6 +1225,7 @@
"alsoTranscribe": "Also transcribe this meeting?",
"authDropboxText": "Upload to Dropbox",
"availableSpace": "Available space: {{spaceLeft}} MB (approximately {{duration}} minutes of recording)",
+ "badRequest": "The recording settings of this meeting are not supported.",
"beta": "BETA",
"busy": "We're working on freeing recording resources. Please try again in a few minutes.",
"busyTitle": "All recorders are currently busy",
diff --git a/react/features/recording/middleware.ts b/react/features/recording/middleware.ts
index edf375bac1..1279092511 100644
--- a/react/features/recording/middleware.ts
+++ b/react/features/recording/middleware.ts
@@ -661,6 +661,13 @@ function _showRecordingErrorNotification(session: any, dispatch: IStore['dispatc
titleKey: isStreamMode ? 'liveStreaming.inProgress' : 'recording.inProgress'
}));
break;
+ case JitsiMeetJS.constants.recording.error.BAD_REQUEST:
+ // The request itself is invalid, so trying again would fail in the same way.
+ dispatch(showRecordingError({
+ descriptionKey: isStreamMode ? 'liveStreaming.badRequest' : 'recording.badRequest',
+ titleKey: isStreamMode ? 'liveStreaming.failedToStart' : 'recording.failedToStart'
+ }));
+ break;
case JitsiMeetJS.constants.recording.error.POLICY_VIOLATION:
dispatch(showRecordingWarning({
descriptionKey: isStreamMode ? 'liveStreaming.policyError' : 'recording.policyError',