fix(blur): Disable for SS

This commit is contained in:
Hristo Terezov 2019-07-08 10:42:39 +01:00
parent c5111bb359
commit 8f79779ca7
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -918,6 +918,7 @@ class Toolbox extends Component<Props, State> {
_etherpadInitialized, _etherpadInitialized,
_feedbackConfigured, _feedbackConfigured,
_fullScreen, _fullScreen,
_screensharing,
_sharingVideo, _sharingVideo,
t t
} = this.props; } = this.props;
@ -973,7 +974,7 @@ class Toolbox extends Component<Props, State> {
<VideoBlurButton <VideoBlurButton
key = 'videobackgroundblur' key = 'videobackgroundblur'
showLabel = { true } showLabel = { true }
visible = { this._shouldShowButton('videobackgroundblur') } />, visible = { this._shouldShowButton('videobackgroundblur') && !_screensharing } />,
<SettingsButton <SettingsButton
key = 'settings' key = 'settings'
showLabel = { true } showLabel = { true }