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(audioOnly): do not disable when SS starts

Hristo Terezov17b5009e6377
diff --git a/lang/main.json b/lang/main.json
index ae4792809f..f3172725db 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -712,6 +712,8 @@
"reactionSoundsForAll": "Disable sounds for all",
"screenShareNoAudio": "Share audio box was not checked in the window selection screen.",
"screenShareNoAudioTitle": "Couldn't share system audio!",
+ "screenSharingAudioOnlyDescription": "Please note that by sharing your screen you're affecting the \"Best performance\" mode and you will use more bandwidth.",
+ "screenSharingAudioOnlyTitle": "\"Best performance\" mode",
"selfViewTitle": "You can always un-hide the self-view from settings",
"somebody": "Somebody",
"startSilentDescription": "Rejoin the meeting to enable audio",
diff --git a/react/features/base/tracks/actions.web.ts b/react/features/base/tracks/actions.web.ts
index dfaada8fb9..eb7b3cc7b7 100644
--- a/react/features/base/tracks/actions.web.ts
+++ b/react/features/base/tracks/actions.web.ts
@@ -14,7 +14,6 @@ import { isAudioOnlySharing, isScreenVideoShared } from '../../screen-share/func
import { isScreenshotCaptureEnabled, toggleScreenshotCaptureSummary } from '../../screenshot-capture';
// @ts-ignore
import { AudioMixerEffect } from '../../stream-effects/audio-mixer/AudioMixerEffect';
-import { setAudioOnly } from '../audio-only/actions';
import { getCurrentConference } from '../conference/functions';
import { JitsiTrackErrors, JitsiTrackEvents } from '../lib-jitsi-meet';
import { setScreenshareMuted } from '../media/actions';
@@ -227,12 +226,15 @@ async function _toggleScreenSharing(
}
}
- // Disable audio-only or best performance mode if the user starts screensharing. This doesn't apply to
- // audio-only screensharing.
+ // Show notification about more bandwidth usage in audio-only mode if the user starts screensharing. This
+ // doesn't apply to audio-only screensharing.
const { enabled: bestPerformanceMode } = state['features/base/audio-only'];
if (bestPerformanceMode && !audioOnly) {
- dispatch(setAudioOnly(false));
+ dispatch(showNotification({
+ titleKey: 'notify.screenSharingAudioOnlyTitle',
+ descriptionKey: 'notify.screenSharingAudioOnlyDescription'
+ }, NOTIFICATION_TIMEOUT_TYPE.LONG));
}
} else {
const { desktopAudioTrack } = state['features/screen-share'];