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
fix(local-rec) Handle no mic permission (#12862)
Robert Pintilii12318db4c7c1
diff --git a/lang/main.json b/lang/main.jsonindex f19aa8ab61..3cd1a46e25 100644--- a/lang/main.json+++ b/lang/main.json@@ -916,6 +916,7 @@"localRecordingVideoWarning": "To record your video you must have it on when starting the recording","localRecordingWarning": "Make sure you select the current tab in order to use the right video and audio. The recording is currently limited to 1GB, which is around 100 minutes.","loggedIn": "Logged in as {{userName}}",+ "noMicPermission": "Microphone track could not be created. Please grant permission to use the microphone.","noStreams": "No audio or video stream detected.","off": "Recording stopped","offBy": "{{name}} stopped the recording",diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.tsindex 71a6ac73b1..c987241799 100644--- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts+++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts@@ -231,6 +231,11 @@ const LocalRecordingManager: ILocalRecordingManager = {});}+ // handle no mic permission+ if (!getLocalTrack(getTrackState(getState()), MEDIA_TYPE.AUDIO)?.jitsiTrack?.track) {+ throw new Error('NoMicTrack');+ }+const currentTitle = document.title;document.title = i18next.t('localRecording.selectTabTitle');diff --git a/react/features/recording/middleware.ts b/react/features/recording/middleware.tsindex a0b8abaf5d..3947eb5662 100644--- a/react/features/recording/middleware.ts+++ b/react/features/recording/middleware.ts@@ -163,6 +163,8 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => async action =>} else if (err.message === 'NoLocalStreams') {descriptionKey = 'recording.noStreams';+ } else if (err.message === 'NoMicTrack') {+ descriptionKey = 'recording.noMicPermission';}const props = {descriptionKey,