Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat : Add config to disable camera tint foreground (#15619)
Axel Prola93de398a090f
diff --git a/config.js b/config.jsindex bf7189cc64..b35db8e275 100644--- a/config.js+++ b/config.js@@ -1857,6 +1857,9 @@ var config = {// Hide login button on auth dialog, you may want to enable this if you are using JWT tokens to authenticate users// hideLoginButton: true,++ // If true remove the tint foreground on focused user camera in filmstrip+ // disableCameraTintForeground: false,};// Set the default values for JaaS customersdiff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.tsindex df4929431f..ca91f30324 100644--- a/react/features/base/config/configType.ts+++ b/react/features/base/config/configType.ts@@ -292,6 +292,7 @@ export interface IConfig {disableAddingBackgroundImages?: boolean;disableAudioLevels?: boolean;disableBeforeUnloadHandlers?: boolean;+ disableCameraTintForeground?: boolean;disableChatSmileys?: boolean;disableDeepLinking?: boolean;disableFilmstripAutohiding?: boolean;diff --git a/react/features/base/config/configWhitelist.ts b/react/features/base/config/configWhitelist.tsindex 2154342821..93cdc24bf6 100644--- a/react/features/base/config/configWhitelist.ts+++ b/react/features/base/config/configWhitelist.ts@@ -91,6 +91,7 @@ export default ['disableAddingBackgroundImages','disableAudioLevels','disableBeforeUnloadHandlers',+ 'disableCameraTintForeground','disableChatSmileys','disableDeepLinking','disabledNotifications',diff --git a/react/features/filmstrip/components/web/Thumbnail.tsx b/react/features/filmstrip/components/web/Thumbnail.tsxindex 26492d15d6..4de09521fa 100644--- a/react/features/filmstrip/components/web/Thumbnail.tsx+++ b/react/features/filmstrip/components/web/Thumbnail.tsx@@ -1363,6 +1363,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {// skip showing tint for owner participants that are screensharing.&& !screenshareParticipantIds.includes(id);+ const disableTintForeground = state['features/base/config'].disableCameraTintForeground ?? false;return {_audioTrack,@@ -1384,7 +1385,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {_raisedHand: hasRaisedHand(participant),_stageFilmstripLayout: isStageFilmstripAvailable(state),_stageParticipantsVisible: _currentLayout === LAYOUTS.STAGE_FILMSTRIP_VIEW,- _shouldDisplayTintBackground: shouldDisplayTintBackground,+ _shouldDisplayTintBackground: !disableTintForeground && shouldDisplayTintBackground,_thumbnailType: tileType,_videoObjectPosition: getVideoObjectPosition(state, participant?.id),_videoTrack,