-
Notifications
You must be signed in to change notification settings - Fork 82
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
Bug fix to retrieve the correct selected ice candidate pair #25
Bug fix to retrieve the correct selected ice candidate pair #25
Conversation
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.
Minor changes requested to logic and naming.
Frontend/library/src/PeerConnectionController/AggregatedStats.ts
Outdated
Show resolved
Hide resolved
Frontend/library/src/PeerConnectionController/AggregatedStats.ts
Outdated
Show resolved
Hide resolved
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
(cherry picked from commit fd24a45)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Relevant components:
Problem statement:
The active candidate pair returned from the
AggregatedStats.getActiveCandidatePair
function is returning the 1st candidate pair element which has received any bytes, some browsers will receive data on multiple candidate pairs which is not the selected candidate pairSolution
Implement the handling of the
RTCTransportStats
from theRTCStatsReport
Retrieve the selected candidate pair from the list of candidate pairs using the
selectedcandidatepairid
from theRTCTransportStats
Due to
browser_compatibility
fire fox doesn't supportRTCTransportStats
In the case of the
RTCTransportStats
being undefined fall back to use theselected
property of theRTCIceCandidatePairStats