Re: [webrtc-pc] addIceCandidate may add ice candidate to the wrong remote description

With the concept ufrag identifying from multiple ICE generations and remote descriptions, it is not very clear how various other steps would behave `addIceCandidate` when called with old ufrags not belonging to `remoteDescription`.

- As mentioned, one could attempt to add candidate to `currentRemoteDescription` when there is a `pendingRemoteDescription`.
- `pendingRemoteDescription` can be updated multiple times with different ufrags, but the older remote descriptions are not saved. So if calling with older ufrags, do they still get "remembered" by the ICE agent and get applied accordingly? And if so on success do the candidate get added to the latest `pendingRemoteDescription`?

It seems that the current description for `addIceCandidate` is only applicable to the particular SDP in `remoteDescription`, thus only a particular ICE generation. If so is the statement _"Use candidate.ufrag to identify the ICE generation"_ and then proceed to process the candidate still make any sense?

GitHub Notification of comment by soareschen
Please view or discuss this issue at using your GitHub account

Received on Friday, 19 May 2017 04:22:58 UTC