mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-13 15:54:59 +01:00
Show participant as soon as found rather than once connected
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 <danxuliu@gmail.com>
This commit is contained in:
parent
2f44e6fd19
commit
c3f1f6c3a8
@ -1832,6 +1832,14 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
for (String sessionId : newSessions) {
|
for (String sessionId : newSessions) {
|
||||||
Log.d(TAG, " newSession joined: " + sessionId);
|
Log.d(TAG, " newSession joined: " + sessionId);
|
||||||
getOrCreatePeerConnectionWrapperForSessionIdAndType(sessionId, VIDEO_STREAM_TYPE_VIDEO, false);
|
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)) {
|
if (newSessions.size() > 0 && !currentCallStatus.equals(CallStatus.IN_CONVERSATION)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user