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(CC): Handle errors on start

Hristo Terezovf22315cf920c
diff --git a/react/features/subtitles/middleware.ts b/react/features/subtitles/middleware.ts
index ed06e8b72b..094c764acb 100644
--- a/react/features/subtitles/middleware.ts
+++ b/react/features/subtitles/middleware.ts
@@ -23,6 +23,7 @@ import { notifyTranscriptionChunkReceived } from './functions';
import { areClosedCaptionsEnabled, isCCTabEnabled } from './functions.any';
import logger from './logger';
import { ISubtitle, ITranscriptMessage } from './types';
+import { showErrorNotification } from '../notifications/actions';
/**
* The type of json-message which indicates that json carries a
@@ -352,6 +353,10 @@ function _requestingSubtitlesChange(
// let's back to the correct state
dispatch(setRequestingSubtitles(false, false, null));
+
+ dispatch(showErrorNotification({
+ titleKey: 'transcribing.failed'
+ }));
});
}
}