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) update labels with transcription status
Saúl Ibarra Corretgécfbcfdc857a2
diff --git a/lang/main.json b/lang/main.jsonindex 42297c6ade..7d873351f3 100644--- a/lang/main.json+++ b/lang/main.json@@ -617,7 +617,7 @@"errorAPI": "An error occurred while accessing your YouTube broadcasts. Please try logging in again.","errorLiveStreamNotEnabled": "Live Streaming is not enabled on {{email}}. Please enable live streaming or log into an account with live streaming enabled.","expandedOff": "The live streaming has stopped",- "expandedOn": "The meeting is currently being streamed to YouTube.",+ "expandedOn": "The meeting is currently being live streamed","expandedPending": "The live streaming is being started...","failedToStart": "Live Streaming failed to start","getStreamKeyManually": "We weren’t able to fetch any live streams. Try getting your live stream key from YouTube.",@@ -987,7 +987,7 @@"error": "Recording failed. Please try again.","errorFetchingLink": "Error fetching recording link.","expandedOff": "Recording has stopped",- "expandedOn": "The meeting is currently being recorded.",+ "expandedOn": "The meeting is currently being recorded","expandedPending": "Recording is being started...","failedToStart": "Recording failed to start","fileSharingdescription": "Share the recording link with the meeting participants",diff --git a/react/features/recording/components/AbstractRecordingLabel.ts b/react/features/recording/components/AbstractRecordingLabel.tsindex a3314953a9..40ff13e38d 100644--- a/react/features/recording/components/AbstractRecordingLabel.ts+++ b/react/features/recording/components/AbstractRecordingLabel.ts@@ -5,14 +5,7 @@ import { IReduxState } from '../../app/types';import { JitsiRecordingConstants } from '../../base/lib-jitsi-meet';import { getSessionStatusToShow } from '../functions';-/**- * NOTE: Web currently renders multiple indicators if multiple recording- * sessions are running. This is however may not be a good UX as it's not- * obvious why there are multiple similar 'REC' indicators rendered. Mobile- * only renders one indicator if there is at least one recording session- * running. These boolean are shared across the two components to make it- * easier to align web's behaviour to mobile's later if necessary.- */+interface IProps extends WithTranslation {/**@@ -20,6 +13,11 @@ interface IProps extends WithTranslation {*/_iAmRecorder: boolean;+ /**+ * Whether this meeting is being transcribed.+ */+ _isTranscribing: boolean;+/*** The status of the higher priority session.*/@@ -177,6 +175,7 @@ export function _mapStateToProps(state: IReduxState, ownProps: any) {return {_iAmRecorder: Boolean(state['features/base/config'].iAmRecorder),+ _isTranscribing: state['features/transcribing'].isTranscribing,_status: getSessionStatusToShow(state, mode)};}diff --git a/react/features/recording/components/native/RecordingExpandedLabel.ts b/react/features/recording/components/native/RecordingExpandedLabel.tsindex 83d9d11db4..da7e8f5f89 100644--- a/react/features/recording/components/native/RecordingExpandedLabel.ts+++ b/react/features/recording/components/native/RecordingExpandedLabel.ts@@ -8,6 +8,11 @@ import { getSessionStatusToShow } from '../../functions';interface IProps extends AbstractProps {+ /**+ * Whether this meeting is being transcribed.+ */+ _isTranscribing: boolean;+/*** The status of the highermost priority session.*/@@ -60,7 +65,13 @@ class RecordingExpandedLabel extends ExpandedLabel<IProps> {break;}- return t(`${prefix}.${postfix}`);+ let content = t(`${prefix}.${postfix}`);++ if (_status === JitsiRecordingConstants.status.ON && this.props._isTranscribing) {+ content += ` \u00B7 ${t('transcribing.labelToolTip')}`;+ }++ return content;}}@@ -79,6 +90,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {const { mode } = ownProps;return {+ _isTranscribing: state['features/transcribing'].isTranscribing,_status: getSessionStatusToShow(state, mode)};}diff --git a/react/features/recording/components/web/RecordingLabel.tsx b/react/features/recording/components/web/RecordingLabel.tsxindex f395301b16..2f97b5c5d1 100644--- a/react/features/recording/components/web/RecordingLabel.tsx+++ b/react/features/recording/components/web/RecordingLabel.tsx@@ -47,7 +47,12 @@ class RecordingLabel extends AbstractRecordingLabel {const { classes, mode, t } = this.props;const isRecording = mode === JitsiRecordingConstants.mode.FILE;const icon = isRecording ? IconRecord : IconSites;- const content = t(isRecording ? 'videoStatus.recording' : 'videoStatus.streaming');++ let content = t(isRecording ? 'videoStatus.recording' : 'videoStatus.streaming');++ if (this.props._isTranscribing) {+ content += ` \u00B7 ${t('transcribing.labelToolTip')}`;+ }return (<Tooltip