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.
*/
isEnabled(jitsiLocalTrack) {
return jitsiLocalTrack.isVideoTrack();
return jitsiLocalTrack.isVideoTrack() && jitsiLocalTrack.videoType === 'camera';
}
}

View File

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