Ice restart

Skip to first unread message

Gps Test

Oct 4, 2022, 6:15:38 PMOct 4
to discuss-webrtc
What is procedure for restarting ice after one peer loses and regains connection ?
This is in native C++.

My understanding is in connectionchange on failure to call RestartIce() and then resend your offer. Is that correct?

Alexander Abagian

Oct 5, 2022, 3:29:01 PMOct 5
to discuss-webrtc
Run pc.restartIce(), catch onnegotiationneeded event, create offer there like below, and send it to the peer.

let offerOpts = {
  iceRestart: true,
  offerToReceiveVideo: true,
  offerToReceiveAudio: true
pc.createOffer(offerOpts).then((offer)=>{... send it ... });

среда, 5 октября 2022 г. в 01:15:38 UTC+3,

Gps Test

Oct 9, 2022, 5:59:48 PMOct 9
to discuss-webrtc
Looks like in C++ native, you dont need to set iceRestart to true, that RestartIce() will cause that to happen?
Reply all
Reply to author
0 new messages