Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(settings): avoid activating all microphones when audio levels are disabled

mishraditidf0e55eda35c
diff --git a/react/features/settings/components/web/audio/AudioSettingsContent.tsx b/react/features/settings/components/web/audio/AudioSettingsContent.tsx
index 4bd43f5c6b..c4c42e3219 100644
--- a/react/features/settings/components/web/audio/AudioSettingsContent.tsx
+++ b/react/features/settings/components/web/audio/AudioSettingsContent.tsx
@@ -244,11 +244,11 @@ const AudioSettingsContent = ({
* @returns {void}
*/
const _setTracks = async () => {
- if (browser.isWebKitBased()) {
-
+ if (!measureAudioLevels || browser.isWebKitBased()) {
// It appears that at the time of this writing, creating audio tracks blocks the browser's main thread for
// long time on safari. Wasn't able to confirm which part of track creation does the blocking exactly, but
// not creating the tracks seems to help and makes the UI much more responsive.
+ // Also skip when audio levels are disabled to avoid activating all microphones unnecessarily.
return;
}