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(transcribing) add notification when transcribing starts

Saúl Ibarra Corretgé5966df96e8c3
diff --git a/lang/main.json b/lang/main.json
index b9be2e6c6a..2e852358e1 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -1360,6 +1360,7 @@
"failedToStart": "Transcribing failed to start",
"labelToolTip": "The meeting is being transcribed",
"off": "Transcribing stopped",
+ "on": "Transcribing started",
"pending": "Preparing to transcribe the meeting...",
"sourceLanguageDesc": "Currently the meeting language is set to <b>{{sourceLanguage}}</b>. <br/> You can change it from ",
"sourceLanguageHere": "here",
diff --git a/react/features/transcribing/actions.ts b/react/features/transcribing/actions.ts
index 965157ca85..1569829bb2 100644
--- a/react/features/transcribing/actions.ts
+++ b/react/features/transcribing/actions.ts
@@ -72,6 +72,20 @@ export function showPendingTranscribingNotification() {
}, NOTIFICATION_TIMEOUT_TYPE.LONG);
}
+/**
+ * Signals that the started transcribing notification should be shown on the
+ * screen.
+ *
+ * @returns {showNotification}
+ */
+export function showStartedTranscribingNotification() {
+ return showNotification({
+ descriptionKey: 'transcribing.on',
+ titleKey: 'dialog.transcribing',
+ uid: TRANSCRIBING_NOTIFICATION_ID
+ }, NOTIFICATION_TIMEOUT_TYPE.SHORT);
+}
+
/**
* Signals that the stopped transcribing notification should be shown on the
* screen.
diff --git a/react/features/transcribing/middleware.ts b/react/features/transcribing/middleware.ts
index e57ddfed5e..49acf03785 100644
--- a/react/features/transcribing/middleware.ts
+++ b/react/features/transcribing/middleware.ts
@@ -14,6 +14,7 @@ import {
import {
potentialTranscriberJoined,
showPendingTranscribingNotification,
+ showStartedTranscribingNotification,
showStoppedTranscribingNotification,
transcriberJoined,
transcriberLeft
@@ -37,6 +38,8 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
switch (action.type) {
case _TRANSCRIBER_JOINED: {
+ dispatch(showStartedTranscribingNotification());
+
const state = getState();
const { transcription } = state['features/base/config'];
const { _requestingSubtitles } = state['features/subtitles'];