From 1c1604bee73a27fc9564cd885f3a7b4b1e738961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 2 Aug 2017 12:07:20 +0200 Subject: [PATCH] [Android] Don't mute the microphone under any circumstance It's a global action, and if we do that other applications won't be able to use it. I experienced this with the system camera. We do, however, make sure to enable it when we need to. Note that enabling it doesn't mean we are *using* it. It just means we *can*, and that we will get actual audio when we do. --- .../main/java/org/jitsi/meet/sdk/audiomode/AudioModeModule.java | 1 - 1 file changed, 1 deletion(-) diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/audiomode/AudioModeModule.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/audiomode/AudioModeModule.java index 49f4a0b4c..491c86234 100644 --- a/android/sdk/src/main/java/org/jitsi/meet/sdk/audiomode/AudioModeModule.java +++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/audiomode/AudioModeModule.java @@ -300,7 +300,6 @@ public class AudioModeModule extends ReactContextBaseJavaModule { audioManager.setMode(AudioManager.MODE_NORMAL); audioManager.abandonAudioFocus(null); audioManager.setSpeakerphoneOn(false); - audioManager.setMicrophoneMute(true); setBluetoothAudioRoute(false); return true;