Use Ice Candidates Pool - #1018
Open
jpsantosbh wants to merge 5 commits into
Open
Conversation
🦋 Changeset detectedLatest commit: 24f148f The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
iAmmar7
reviewed
Apr 15, 2024
| requestTimeout: 10 * 1000, | ||
| autoApplyMediaParams: true, | ||
| iceGatheringTimeout: 2 * 1000, | ||
| iceGatheringTimeout: 15, |
Member
There was a problem hiding this comment.
ICE gathering timeout has been set to 15ms? Or did you mean to set it for 1.5 seconds?
Collaborator
Author
There was a problem hiding this comment.
15ms, this is for each candidate
giavac
removed their request for review
August 25, 2025 09:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The changes will enable the pre-gathering of ice candidates as soon as we instantiate the
RTCPeerConnection.To create some room for the pre-gathering the
RTCPeerConnectioninstantiation was moved to the top of theRTCPeer.start()method. introducing one side effect.Side Effect
In the very first use of an Application the
RTCPeerConnectionwill be instantiated with no User Media permission, making alltyp hostcandidates withmDNSaddresses instead of IP addresses. Since we filter allmDNScandidates from the SDP before sending it to the server the SDP will have notyp hostcandidates.Tests show no impact on the connectivity or setup time for that very first call.
Call Setup with
hostcandidatesCall Setup with no
hostcandidatesNext calls the SDP will have all the candidates
Type of change
Code snippets
In case of new feature or breaking changes, please include code snippets.