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

Looking for a solution to create Subscriber offer with iceRestart option #676

Open
calvin-seo opened this issue Feb 20, 2023 · 0 comments
Open

Comments

@calvin-seo
Copy link

I want achieve reconnection without create new RTCPeerConnection for both publisher and subscriber at both client and server-side, when. client's IP gets changed during reconnection

I could successfully achieved the reconnection for publisher RTCPeerConnection by sending new offer created with iceRestart set true during reconnection. However, it seems ion-sfu does not provide way to create a new offer with iceRestart option for Subscriber, so the server-side subscriber ICE agent keeps sending heartbeat to the old client IP.

I could only manually call *Subscriber.Negotiate() method, and get a new Subscriber offer without the option as stated below,
https://github.com/pion/ion-sfu/blob/daf197ada794c66ab01b7fe4e32718cbc4dba005/pkg/sfu/subscriber.go#L237-L240

However, no icecandidate event gets fired from both client and server-side after the server and client share the Subscriber offer and answer.

@calvin-seo calvin-seo changed the title Looking for solution to create Publisher offer with iceRestart option Looking for a solution to create Subscriber offer with iceRestart option Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant