Re: [webrtc-pc] {iceRestart: true} works poorly with negotiationneeded (#2167)

@alvestrand Not clear to me that a `restart` method can't be emulated:

. . .
var options = {iceRestart: false} ;

async function negotiate() {
  await pc.setLocalDescription(await pc.createOffer(options));
  io.send({desc: pc.localDescription});
}
pc.onnegotiationneeded = () => negotiate();
pc.oniceconnectionstatechange = (e) => {
  if (pc.iceConnectonState == 'failed') {
    options.iceRestart = true);
  }
};
. . .

-- 
GitHub Notification of comment by aboba
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2167#issuecomment-482089479 using your GitHub account

Received on Thursday, 11 April 2019 12:14:10 UTC