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
fix(mobile) Do not disableAudioLevels on RN since it uses feature detection now (#13226)
Jaya Allamsetty6aff616af461
diff --git a/react/features/base/config/functions.web.ts b/react/features/base/config/functions.web.tsindex c7d9a7a1a8..2690972915 100644--- a/react/features/base/config/functions.web.ts+++ b/react/features/base/config/functions.web.ts@@ -1,4 +1,5 @@import { IReduxState } from '../../app/types';+import JitsiMeetJS from '../../base/lib-jitsi-meet';import { IConfig, IDeeplinkingConfig, IDeeplinkingMobileConfig, IDeeplinkingPlatformConfig } from './configType';import { TOOLBAR_BUTTONS } from './constants';@@ -75,8 +76,7 @@ export function isToolbarButtonEnabled(buttonName: string, state: IReduxState |* @returns {boolean}*/export function areAudioLevelsEnabled(state: IReduxState): boolean {- // Default to false for React Native as audio levels are of no interest to the mobile app.- return navigator.product !== 'ReactNative' && !state['features/base/config'].disableAudioLevels;+ return !state['features/base/config'].disableAudioLevels && JitsiMeetJS.isCollectingLocalStats();}/**diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.tsindex 1f9d34de7d..bf52325d68 100644--- a/react/features/base/config/reducer.ts+++ b/react/features/base/config/reducer.ts@@ -45,17 +45,8 @@ const INITIAL_NON_RN_STATE: IConfig = {const INITIAL_RN_STATE: IConfig = {analytics: {},- // FIXME The support for audio levels in lib-jitsi-meet polls the statistics- // of WebRTC at a short interval multiple times a second. Unfortunately,- // React Native is slow to fetch these statistics from the native WebRTC- // API, through the React Native bridge and eventually to JavaScript.- // Because the audio levels are of no interest to the mobile app, it is- // fastest to merely disable them.- disableAudioLevels: true,-// FIXME: Mobile codecs should probably be configurable separately, rather// than requiring this override here...-p2p: {disabledCodec: 'vp9',preferredCodec: 'vp8'