[webrtc-pc] Composed RTCPeerConnection.gatheringState seems wrong in some ICE restart cases (#2914)

docfaraday has just created a new issue for https://github.com/w3c/webrtc-pc:

== Composed RTCPeerConnection.gatheringState seems wrong in some ICE restart cases ==
One example:

transport1: new, pc: new
transport1: gathering, pc: gathering
sLD(ICE restart offer)
transport1: gathering, transport2: new, pc: gathering
transport1: **_complete_**, transport2: new, pc: **_new_** <--- Wrong!
transport1: complete, transport2: gathering, pc: gathering

I don't think it makes sense for RTCPeerConnection.gatheringState to be "new" unless we have never started gathering before. Once we transition out of "new", we should never return; the pc's gathering state should either be "complete" if all transports are complete or "gathering" otherwise.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2914 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 11 December 2023 16:32:32 UTC