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(android) Keep microphone enabled when app is in background
Mayuki Arisakafee4151f835c
diff --git a/android/sdk/src/main/AndroidManifest.xml b/android/sdk/src/main/AndroidManifest.xmlindex 946814d628..68cd34ba32 100644--- a/android/sdk/src/main/AndroidManifest.xml+++ b/android/sdk/src/main/AndroidManifest.xml@@ -12,6 +12,7 @@<uses-permission android:name="android.permission.WAKE_LOCK" /><uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /><uses-permission android:name="android.permission.FOREGROUND_SERVICE" />+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" /><uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" /><uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" /><uses-permission android:name="android.permission.POST_NOTIFICATIONS" />@@ -50,7 +51,7 @@<serviceandroid:name="org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService"- android:foregroundServiceType="mediaPlayback" />+ android:foregroundServiceType="mediaPlayback|microphone" /><providerandroid:name="com.reactnativecommunity.webview.RNCWebViewFileProvider"diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.javaindex 1644bae225..4ab50c1974 100644--- a/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java+++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java@@ -133,7 +133,7 @@ public class JitsiMeetOngoingConferenceService extends ServiceJitsiMeetLogger.w(TAG + " Couldn't start service, notification is null");} else {if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {- startForeground(NOTIFICATION_ID, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK);+ startForeground(NOTIFICATION_ID, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK | ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE);} else {startForeground(NOTIFICATION_ID, notification);}