Ice restart

58 views
Skip to first unread message

Gps Test

unread,
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

unread,
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, gtes...@gmail.com:

Gps Test

unread,
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
Forward
0 new messages