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(tracks) Adds UI notification when SS is killed by macOS.

Jaya Allamsetty94243c797cba
diff --git a/lang/main.json b/lang/main.json
index 7124fd5bd8..b3a6f66fd5 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -469,6 +469,8 @@
"screenSharingFailed": "Oops! Something went wrong, we weren't able to start screen sharing!",
"screenSharingFailedTitle": "Screen sharing failed!",
"screenSharingPermissionDeniedError": "Oops! Something went wrong with your screen sharing permissions. Please reload and try again.",
+ "screenshareStoppedDiskSpace": "This happens if you used the macOS's floating toolbar to stop screen sharing. It may also be due to low disk space.",
+ "screenshareStoppedTitle": "Screen sharing stopped via system",
"searchInSalesforce": "Search in Salesforce",
"searchResults": "Search results({{count}})",
"searchResultsDetailsError": "Something went wrong while retrieving owner data.",
diff --git a/react/features/base/tracks/actions.any.ts b/react/features/base/tracks/actions.any.ts
index a1501c3132..5fa8b49790 100644
--- a/react/features/base/tracks/actions.any.ts
+++ b/react/features/base/tracks/actions.any.ts
@@ -1,10 +1,11 @@
import { createTrackMutedEvent } from '../../analytics/AnalyticsEvents';
import { sendAnalytics } from '../../analytics/functions';
import { IStore } from '../../app/types';
-import { showErrorNotification, showNotification } from '../../notifications/actions';
+import { showErrorNotification, showNotification, showWarningNotification } from '../../notifications/actions';
import { NOTIFICATION_TIMEOUT, NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants';
import { getCurrentConference } from '../conference/functions';
import { IJitsiConference } from '../conference/reducer';
+import { isMacOS } from '../environment/environment';
import { JitsiTrackErrors, JitsiTrackEvents } from '../lib-jitsi-meet';
import { setAudioMuted, setScreenshareMuted, setVideoMuted } from '../media/actions';
import {
@@ -439,6 +440,12 @@ export function trackAdded(track: any) {
track.on(JitsiTrackEvents.LOCAL_TRACK_STOPPED,
() => {
logger.debug(`Local track stopped: ${track}, removing it from the conference`);
+ if (mediaType === MEDIA_TYPE.SCREENSHARE && isMacOS()) {
+ dispatch(showWarningNotification({
+ descriptionKey: 'dialog.screenshareStoppedDiskSpace',
+ titleKey: 'dialog.screenshareStoppedTitle'
+ }, NOTIFICATION_TIMEOUT_TYPE.LONG));
+ }
dispatch({
type: TRACK_STOPPED,
track: {