-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(meetings): empty webrtc dumps when user closes the browser early #3830
Conversation
this.setNewConnectionId(); | ||
// Send the first set of metrics at 5 seconds in the case of a user leaving the call shortly after joining. | ||
setTimeout(this.sendMetricsInQueue.bind(this), 5 * 1000); | ||
this.resetConnection(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've renamed setNewConnectionId()
to resetConnection()
, because we need to reset the initialMetricsSent
flag when we have a new connection, so that we upload the stats for the new connection as soon as they appear
5850d8e
to
69a6039
Compare
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
COMPLETES #SPARK-562098
This pull request addresses
When investigating join meeting failure cases where ICE connection was successful, but RTP packets seemed to be not getting through I saw a lot of webrtc dumps that were missing the stats, they only contained the log. It's because SDK uploads the dumps 5s after connection creation and WCME also calls getStats() 5s after connection creation, but it's just after the SDK timer, so the metrics that get uploaded don't have the result of the 1st getStats() call.
by making the following changes
Changed SDK to do the first upload as soon as we get a first stats-report.
Change Type
The following scenarios where tested
unit tests and manual run with the web app
I certified that
I have read and followed contributing guidelines
I discussed changes with code owners prior to submitting this pull request
I have not skipped any automated checks
All existing and new tests passed
I have updated the documentation accordingly
Make sure to have followed the contributing guidelines before submitting.