Skip to content
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

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

david-macpherson
Copy link
Contributor

Relevant components:

  • Signalling server
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • Platform scripts
  • SFU

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 pair

Solution

Implement the handling of the RTCTransportStats from the RTCStatsReport

Retrieve the selected candidate pair from the list of candidate pairs using the selectedcandidatepairid from the RTCTransportStats

Due to browser_compatibility fire fox doesn't support RTCTransportStats

In the case of the RTCTransportStats being undefined fall back to use the selected property of the RTCIceCandidatePairStats

@david-macpherson david-macpherson changed the title Bug fix to retrive the correct selected candidate pair Bug fix to retrieve the correct selected candidate pair Mar 10, 2024
@david-macpherson david-macpherson changed the title Bug fix to retrieve the correct selected candidate pair Bug fix to retrieve the correct selected ice candidate pair Mar 10, 2024
Copy link
Contributor

@lukehb lukehb left a 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.

@lukehb lukehb self-requested a review March 12, 2024 03:05
Copy link
Contributor

@lukehb lukehb left a comment

Choose a reason for hiding this comment

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

lgtm

@lukehb lukehb added auto-backport Used to specify we want a PR to auto backport to a branch, must be paired with auto-backport-to-UEX. auto-backport-to-UE5.4 Auto backport to UE 5.4 labels Mar 12, 2024
@lukehb lukehb merged commit fd24a45 into EpicGamesExt:master Mar 12, 2024
3 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 12, 2024
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
UE5.4

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

lukehb pushed a commit that referenced this pull request Mar 25, 2024
Co-authored-by: David MacPherson <86945951+david-macpherson@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Used to specify we want a PR to auto backport to a branch, must be paired with auto-backport-to-UEX. auto-backport-to-UE5.4 Auto backport to UE 5.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants