-
Notifications
You must be signed in to change notification settings - Fork 165
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
How Pion WebRTC handle ICE role conflict #359
Comments
Hey @xianchuhan This would be a great change! I don't think it would be that challenging either. In |
Hi @Sean-Der In peerconnection. go SetRemoteDescription function,through the simple judgment to set the end of the ICE role,In pion webrtc code do not see the logic of conflict resolution. As you say, we need According to the ice rfc specification to solve the problem of ice role conflict. |
I don't believe the ICE Role goes in the SessionDescription. If you make the Offer you are the controlling ICE Agent. The only thing that can influence that would be What could happen is that a ICE Agent could incorrectly being in controlling (or controlled mode) and it wouldn't be communicated via the Session Description. This needs to be handled in this package like this |
Thank you very much for your answer. Just as you say,when the browser as webrtc client, its ice role is controlling,pion webrtc as server,its ice role is controlled.in some cases,there will be another scenario,browser and pion webrtc turn channel established, then stun channel building,audio and video data is sent from the browser turn switch to stun channels, but pion webrtc remains from the turn and receives data,that led to not receive each other over the data. Whether pion webrtc can support ice Channel switch? For example, you can switch from turn to stun. |
Yes Pion supports switching between srflx and relay candidates. After a If you want to switch after the Selected pair has been chosen you can do a ice-restart |
Thank you very much. I try this approach. |
pion webrtc environment.
Version: [email protected]
What did you do?
we use pion webrtc as client,ice role is contrlolling,remote webrtc as server,ice role is controlling,in this case,an end-to-end not solve the problem of conflict of ice, pion webrtc no solution to the conflict, causing the ice connection to fail.
What did you expect?
Hope that the pion webrtc can solve the problem of ice role conflict.
The text was updated successfully, but these errors were encountered: