|
@@ -12,6 +12,7 @@ import { createLocalTrack } from '../../base/lib-jitsi-meet/functions';
|
12
|
12
|
import { VIDEO_TYPE } from '../../base/media';
|
13
|
13
|
import { connect } from '../../base/redux';
|
14
|
14
|
import { getLocalVideoTrack } from '../../base/tracks';
|
|
15
|
+import { showErrorNotification } from '../../notifications';
|
15
|
16
|
import { toggleBackgroundEffect } from '../actions';
|
16
|
17
|
import { VIRTUAL_BACKGROUND_TYPE } from '../constants';
|
17
|
18
|
import { resizeImage, toDataURL } from '../functions';
|
|
@@ -132,7 +133,12 @@ function VirtualBackground({ _jitsiTrack, _selectedThumbnail, _virtualSource, di
|
132
|
133
|
const url = await createLocalTrack('desktop', '');
|
133
|
134
|
|
134
|
135
|
if (!url) {
|
135
|
|
- throw new Error('Could not create desktop local track!');
|
|
136
|
+ dispatch(showErrorNotification({
|
|
137
|
+ titleKey: 'virtualBackground.desktopShareError'
|
|
138
|
+ }));
|
|
139
|
+ logger.error('Could not create desktop share as a virtual background!');
|
|
140
|
+
|
|
141
|
+ return;
|
136
|
142
|
}
|
137
|
143
|
setOptions({
|
138
|
144
|
backgroundType: VIRTUAL_BACKGROUND_TYPE.DESKTOP_SHARE,
|