Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #5751

danxuliu added 3 commits June 14, 2021 12:48
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
The stats needs to be reset when a peer connection starts. The stats
from the previous peer connection are unrelated to the new one, and that
will cause a wrong analysis until the stats are filled again with values
from the new peer connection.

Similarly, the stats should be reset too when a peer connection is
restarted. In this case the reported stats continue from the last
values. However, during the reconnection the stats will not be updated,
so the timestamps will suddenly increase once the connection is ready
again, which could cause a wrong analysis.

Due to all that now the stats are reset before the analysis is started,
as the analysis is started only when the peer connection is started or
restarted.

Note that right now the sender connections with the HPB are never
restarted; a new peer connection is always established. Nevertheless,
this approach should be more "future proof".

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
This is just for tidyness, as stats for screen streams only contain data
for video, and thus in practice this change makes no difference.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@danxuliu danxuliu merged commit 75cae9a into stable20 Jun 14, 2021
@danxuliu danxuliu deleted the backport/5751/stable20 branch June 14, 2021 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug feature: call 📹 Voice and video calls feature: frontend 🖌️ "Web UI" client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants