talk-android/app/src
Daniel Calviño Sánchez 5bd920142c Create a connection only for offers instead of for any message
The Android app creates a connection with a participant when that
participant joins the call and ends it when the participant leaves the
call. However, it also created a connection when any signaling message
was received from a participant that had no connection yet. Due to this
if a signaling message was received from a participant before that
participant was in the call the Android app tried to establish a
connection too soon, which would be rejected by the HPB.

Similarly, if a signaling message was received from a participant after
that participant left the call a connection will try to be established.
That would fail, but the connection object was not removed, and if that
participant joined the call again no connection would be established, as
a connection for that participant was already found, even if it was not
usable.

To solve that now a connection is created when a signaling message is
received only if that message is an offer (which is necessary without
HPB if the other participant sends the offer before this participant
"noticed" that she is in the call); otherwise the message is ignored.

Besides that a connection will no longer be created either when setting
up the video stream. However, this would be just for correctness and it
should not make any difference, as the MediaStreamEvents that cause that
are only emitted by changes in peer connections, so they should be
already created.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-04-22 14:38:26 +02:00
..
androidTest/java/com/nextcloud/talk extract magic numbers 2022-03-15 17:46:40 +01:00
generic add copyright + minor refactoring 2022-01-26 15:00:31 +01:00
gplay allow getPeersForCall without QueryMap 2022-03-17 15:17:32 +01:00
main Create a connection only for offers instead of for any message 2022-04-22 14:38:26 +02:00
qa add copyright + minor refactoring 2022-01-26 15:00:31 +01:00
test/java/com/nextcloud/talk/utils Skip test 'ShareUtils#date' 2021-12-08 14:52:21 +01:00