Merge pull request #20645 from JoVictorNunes/hide-virtual-background-controls

fix: hide virtual background controls in unsupported browsers
This commit is contained in:
Ramón Souza 2024-07-10 10:01:36 -03:00 committed by GitHub
commit 1420d4a03a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -968,7 +968,7 @@ class VideoPreview extends Component {
{tabNumber === 0 && (
<Styled.Col>
{this.renderDeviceSelectors()}
{this.renderBrightnessInput()}
{isVirtualBackgroundSupported() && this.renderBrightnessInput()}
</Styled.Col>
)}
{tabNumber === 1 && shouldShowVirtualBackgrounds && (
@ -1182,6 +1182,7 @@ class VideoPreview extends Component {
const shouldShowVirtualBackgroundsTab = isVirtualBackgroundsEnabled
&& !cameraAsContent
&& !(webcamDeviceId === cameraAsContentDeviceId)
&& isVirtualBackgroundSupported()
return (
<Styled.VideoPreviewModal