Re: What should happen to the ICE gathering state when iceTransports is changed?

Link: http://lists.w3.org/Archives/Public/public-webrtc/2014Jun/0029.html

Out of curiosity, what should happen if a more restrictive gathering policy is put in place before gathering is complete? 

The flow goes something like:
- new PC({iceTransports: 'all'})
- setRD(offer)
- createAnswer
- setLD(answer)
- onicegatheringstatechange(gathering)
- onicecandidate(relay1)
- onicecandidate(relay2)
- Possibility A: setConfiguration({iceTransports: 'relay'})
- onicecandidate(null)
- onicegatheringstatechange(complete)
- Possbility B: setConfiguration({iceTransports: 'relay'})


Personally, I like Option 3 for this as well (e.g. don't implement the new policy before the next ICE restart).  

Received on Monday, 14 July 2014 18:40:11 UTC