-
-
Notifications
You must be signed in to change notification settings - Fork 974
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
Two peers sending video/audio leads to immediate renegotiation #670
Labels
Comments
feross
added a commit
that referenced
this issue
Jun 2, 2020
feross
added a commit
that referenced
this issue
Jun 2, 2020
I have a draft PR that fixes the problem, but in a hacky way: #671 Thoughts? |
I agree, it seems to be a bit wrong. I'd expect renegotiation to not be triggered before the first offer was received and answer for it was generated. It is just pointless in this case. |
t-mullen
added a commit
to t-mullen/simple-peer
that referenced
this issue
Aug 8, 2020
… Remove duplicate code.
I've implemented a fix for this in #722, with tests and more debugging logs. The causes were multiple:
|
t-mullen
added a commit
to t-mullen/simple-peer
that referenced
this issue
Aug 8, 2020
momakes3
added a commit
to thereteam/simple-peer
that referenced
this issue
Aug 9, 2020
Released as 9.8.0 |
FredZeng
pushed a commit
to FredZeng/simple-peer
that referenced
this issue
Oct 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
simple-peer
in a relatively simple setup. Seeing the non-initiator peer immediately request renegotiation even though everything is specified upfront in the constructor. I see two offer/answers sent from the initiator peer.Here's my setup: Two peers, each initialized with the
stream
option, soaddTrack()
is called twice (once for video, once for audio) internally in the constructor. For the non-initiator peer,this._isNegotiating
is alreadytrue
because of this line in the constructor:simple-peer/index.js
Line 89 in 90c3dfd
Therefore, for the non-initiator peer, the calls to
this._needsNegotiation()
in response toaddTrack()
cause a negotiation to be immediately queued. Once the connection is stable it triggers the re-negotiation.Is this intentional?
The text was updated successfully, but these errors were encountered: