-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this change we can always exchange ICECandidateInit when signaling
- Loading branch information
1 parent
1464ad4
commit 7c18bbc
Showing
5 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
7c18bbc
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'm curious about the decisions made in this commit, and they are causing breaking changes for us in Snowflake. This change prevents clients using the trickle method for gathering ICE candidates to block indefinitely when generating offers and makes it so that the trickle method can only be used to generate answers.
I'm also confused about the practice of gathering candidates in
SetRemoteDescription
. This can cause anErrMultipleGatherAttempted
to be thrown. It's also not immediately obvious to me how these changes relate to the summary or description of this commit.7c18bbc
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.
Hi @cohosh, @Sean-Der mentioned in the PR (#763)
I had to update the gathering code to only start when signaling is in a stable enough state. If someone emits candidates before the other side is ready it causes Chrome/Pion to fail
, I think that's the rationale behind this particular change.Sorry about the poor commit description, I think we squashed the commits too much.
7c18bbc
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.
No worries, and thanks for the response!
I will take my comments to the PR :)
7c18bbc
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.
@cohosh really sorry about that :(
If we generate candidates after
SetLocalDescription
of anOffer
it will send candidates before the remote has had a chance to generate anAnswer
. This causes Chrome to thrown an error (addicecandidate
beforeSetLocalDescription
)re:
ErrMultipleGatherAttempted
, we don't have great test coverage on this :/ for the current release I want to implement offer/answer multiple times. But yea 100% total oversight there, we should have a bool inpion/webrtc
that we flip to make sure we don't gather multiple times. Nice catch!7c18bbc
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.
oh awesome, yes send the PR my way will get that in quick!