Skip to content

Conversation

@danxuliu
Copy link
Member

Fixes #5362

The logs are printed when the PeerConnectionAnalyzer changes to a state that causes a connection quality warning to be shown (very bad quality or not transmitted data).

Currently the connection quality is analyzed only when the HPB is used and only for the sender participant, so there will be at most a single PeerConnectionAnalyzer. Due to this, for simplicity, for now the stats are logged without any participant identifier.

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Any command or something that can be done to force it for testing? 😅

@danxuliu
Copy link
Member Author

Any command or something that can be done to force it for testing? 😅

  • Setup the HPB
  • Start a call with Firefox
  • Enable audio and video
  • Let it running for a while; with some (bad) luck the stats reported by the browser will stall and this will (wrongly) show the connection quality warning and the logs. Joining and leaving the call with another participant sometimes causes the stats to stall.

Other than that... I test all this with a virtual machine changing the network interface properties with netem 🤷

danxuliu added 2 commits June 29, 2021 10:15
The logs are printed when the PeerConnectionAnalyzer changes to a state
that causes a connection quality warning to be shown (very bad quality
or not transmitted data).

Currently the connection quality is analyzed only when the HPB is used
and only for the sender participant, so there will be at most a single
PeerConnectionAnalyzer. Due to this, for simplicity, for now the stats
are logged without any participant identifier.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@nickvergessen nickvergessen force-pushed the add-logs-for-connection-quality-warning branch from 0726aba to 37aa5f3 Compare June 29, 2021 08:15
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍 code looks fine

@PVince81 PVince81 merged commit e0f4e72 into master Jun 30, 2021
@PVince81 PVince81 deleted the add-logs-for-connection-quality-warning branch June 30, 2021 12:51
@PVince81
Copy link
Member

PVince81 commented Jul 1, 2021

/backport to stable22

@danxuliu
Copy link
Member Author

danxuliu commented Jul 2, 2021

/backport to stable21

@backportbot-nextcloud
Copy link

The backport to stable21 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log debugging information in case of call quality degradation

4 participants