Skip to content

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

fix(conference): save local recording when conference fails (#14606)

Nitin Kushwaha375314cbbd49
diff --git a/react/features/base/conference/middleware.any.ts b/react/features/base/conference/middleware.any.ts
index 9665a39e33..ea2c6c77a3 100644
--- a/react/features/base/conference/middleware.any.ts
+++ b/react/features/base/conference/middleware.any.ts
@@ -165,6 +165,10 @@ function _conferenceFailed({ dispatch, getState }: IStore, next: Function, actio
const result = next(action);
const { enableForcedReload } = getState()['features/base/config'];
+ if (LocalRecordingManager.isRecordingLocally()) {
+ dispatch(stopLocalVideoRecording());
+ }
+
// Handle specific failure reasons.
switch (error.name) {
case JitsiConferenceErrors.CONFERENCE_RESTARTED: {