Sfoglia il codice sorgente

fix(blur): Disable for SS

master
Hristo Terezov 5 anni fa
parent
commit
8f79779ca7

+ 1
- 1
react/features/stream-effects/blur/JitsiStreamBlurEffect.js Vedi File

@@ -160,7 +160,7 @@ export default class JitsiStreamBlurEffect {
160 160
      * false otherwise.
161 161
      */
162 162
     isEnabled(jitsiLocalTrack) {
163
-        return jitsiLocalTrack.isVideoTrack();
163
+        return jitsiLocalTrack.isVideoTrack() && jitsiLocalTrack.videoType === 'camera';
164 164
     }
165 165
 }
166 166
 

+ 2
- 1
react/features/toolbox/components/web/Toolbox.js Vedi File

@@ -918,6 +918,7 @@ class Toolbox extends Component<Props, State> {
918 918
             _etherpadInitialized,
919 919
             _feedbackConfigured,
920 920
             _fullScreen,
921
+            _screensharing,
921 922
             _sharingVideo,
922 923
             t
923 924
         } = this.props;
@@ -973,7 +974,7 @@ class Toolbox extends Component<Props, State> {
973 974
             <VideoBlurButton
974 975
                 key = 'videobackgroundblur'
975 976
                 showLabel = { true }
976
-                visible = { this._shouldShowButton('videobackgroundblur') } />,
977
+                visible = { this._shouldShowButton('videobackgroundblur') && !_screensharing } />,
977 978
             <SettingsButton
978 979
                 key = 'settings'
979 980
                 showLabel = { true }

Loading…
Annulla
Salva