fix(video-preview): blur behavior correction (#21112)

* fix(video-preview): blur behavior correction

* fix(video-preview): blur behavior correction

* Update bigbluebutton-html5/imports/ui/components/video-preview/component.jsx

---------

Co-authored-by: Ramón Souza <contato@ramonsouza.com>
This commit is contained in:
Átila 2024-09-27 11:29:46 -03:00 committed by GitHub
parent 9f18221fc9
commit b62199683f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import { defineMessages, injectIntl } from 'react-intl';
import ReactModal from 'react-modal';
import browserInfo from '/imports/utils/browserInfo';
import deviceInfo from '/imports/utils/deviceInfo';
import Session from '/imports/ui/services/storage/in-memory';
import PollingContainer from '/imports/ui/components/polling/container';
import logger from '/imports/startup/client/logger';
import ActivityCheckContainer from '/imports/ui/components/activity-check/container';
@ -129,6 +130,8 @@ class App extends Component {
const { browserName } = browserInfo;
const { osName } = deviceInfo;
Session.setItem('videoPreviewFirstOpen', true);
ReactModal.setAppElement('#app');
const body = document.getElementsByTagName('body')[0];

View File

@ -26,7 +26,7 @@ import Checkbox from '/imports/ui/components/common/checkbox/component'
import AppService from '/imports/ui/components/app/service';
import { CustomVirtualBackgroundsContext } from '/imports/ui/components/video-preview/virtual-background/context';
import VBGSelectorService from '/imports/ui/components/video-preview/virtual-background/service';
import Storage from '/imports/ui/services/storage/session';
import Session from '/imports/ui/services/storage/in-memory';
import getFromUserSettings from '/imports/ui/services/users-settings';
const VIEW_STATES = {
@ -411,6 +411,7 @@ class VideoPreview extends Component {
this.terminateCameraStream(this.currentVideoStream, webcamDeviceId);
this.cleanupStreamAndVideo();
this._isMounted = false;
Session.setItem('videoPreviewFirstOpen', false);
}
async startCameraBrightness() {
@ -1328,8 +1329,7 @@ class VideoPreview extends Component {
const WebcamBackgroundImg = `${BASE_NAME}/resources/images/webcam_background.svg`;
const darkThemeState = AppService.isDarkThemeEnabled();
const isBlurred = Storage.getItem('isFirstJoin') !== false
&& getFromUserSettings('bbb_auto_share_webcam', window.meetingClientSettings.public.kurento.autoShareWebcam);
const isBlurred = Session.getItem('videoPreviewFirstOpen') && getFromUserSettings('bbb_auto_share_webcam', window.meetingClientSettings.public.kurento.autoShareWebcam);
if (isCamLocked === true) {
this.handleProceed();