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(ConnectionService): history and audio focus on Samsung devices
paweldomasa38674010339
diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/ConnectionService.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/ConnectionService.javaindex f1a2758017..48e27d95c0 100644--- a/android/sdk/src/main/java/org/jitsi/meet/sdk/ConnectionService.java+++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/ConnectionService.java@@ -81,6 +81,13 @@ public class ConnectionService extends android.telecom.ConnectionService {return new ArrayList<>(connections.values());}+ /**+ * @return {@code true} if running a Samsung device.+ */+ static boolean isSamsungDevice() {+ return android.os.Build.MANUFACTURER.toLowerCase().contains("samsung");+ }+/*** Registers a start call promise.*@@ -129,6 +136,14 @@ public class ConnectionService extends android.telecom.ConnectionService {ConnectionImpl connection = connections.get(callUUID);if (connection != null) {+ if (isSamsungDevice()) {+ // Required to release the audio focus correctly.+ connection.setOnHold();+ // Prevents from including in the native phone calls history+ connection.setConnectionProperties(+ Connection.PROPERTY_SELF_MANAGED+ | Connection.PROPERTY_IS_EXTERNAL_CALL);+ }// Note that the connection is not removed from the list here, but// in ConnectionImpl's state changed callback. It's a safer// approach, because in case the app would crash on the JavaScript