From c3f1f6c3a8ff74930b91b5f00c6435186f5ec1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Fri, 16 Sep 2022 00:20:01 +0200 Subject: [PATCH] Show participant as soon as found rather than once connected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As the participants that are not connected yet are clearly marked as such now the participants are shown as soon as they are found rather than waiting for a connection to be established. There is a drawback, however; if a participant will never have a connection (for example, if the HPB is used and that participant does not have publishing permissions) the participant will be endlessly shown with the progress bar. Nevertheless, before they were not shown at all, which was probably even more puzzling. Signed-off-by: Daniel Calviño Sánchez --- .../java/com/nextcloud/talk/activities/CallActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java index ca15b32cc..f88e1fb1f 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java +++ b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java @@ -1832,6 +1832,14 @@ public class CallActivity extends CallBaseActivity { for (String sessionId : newSessions) { Log.d(TAG, " newSession joined: " + sessionId); getOrCreatePeerConnectionWrapperForSessionIdAndType(sessionId, VIDEO_STREAM_TYPE_VIDEO, false); + + runOnUiThread(() -> { + setupVideoStreamForLayout( + null, + sessionId, + false, + VIDEO_STREAM_TYPE_VIDEO); + }); } if (newSessions.size() > 0 && !currentCallStatus.equals(CallStatus.IN_CONVERSATION)) {