瀏覽代碼

fix(virtual-background): Set x scale to default value on desktop share as a virtual background deactivation.

j8
tudordan7 3 年之前
父節點
當前提交
8db3a341b3

+ 6
- 0
react/features/virtual-background/components/VirtualBackgroundDialog.js 查看文件

389
             dispatch(updateSettings({
389
             dispatch(updateSettings({
390
                 localFlipX: !_localFlipX
390
                 localFlipX: !_localFlipX
391
             }));
391
             }));
392
+        } else {
393
+
394
+            // Set x scale to default value.
395
+            dispatch(updateSettings({
396
+                localFlipX: true
397
+            }));
392
         }
398
         }
393
         dispatch(hideDialog());
399
         dispatch(hideDialog());
394
     }, [ dispatch, options, _localFlipX ]);
400
     }, [ dispatch, options, _localFlipX ]);

+ 6
- 0
react/features/virtual-background/functions.js 查看文件

1
 // @flow
1
 // @flow
2
 
2
 
3
 import { JitsiTrackEvents } from '../base/lib-jitsi-meet';
3
 import { JitsiTrackEvents } from '../base/lib-jitsi-meet';
4
+import { updateSettings } from '../base/settings';
4
 
5
 
5
 import { toggleBackgroundEffect } from './actions';
6
 import { toggleBackgroundEffect } from './actions';
6
 let filterSupport;
7
 let filterSupport;
110
     desktopTrack
111
     desktopTrack
111
     && desktopTrack.on(JitsiTrackEvents.LOCAL_TRACK_STOPPED, () => {
112
     && desktopTrack.on(JitsiTrackEvents.LOCAL_TRACK_STOPPED, () => {
112
         dispatch(toggleBackgroundEffect(noneOptions, currentLocalTrack));
113
         dispatch(toggleBackgroundEffect(noneOptions, currentLocalTrack));
114
+
115
+        // Set x scale to default value.
116
+        dispatch(updateSettings({
117
+            localFlipX: true
118
+        }));
113
     });
119
     });
114
 }
120
 }

Loading…
取消
儲存