Re: [webrtc-pc] Partially connected peerconnection might have "new" connectionstate. (#2031)

Here's an attempt to simplify the table by making it self-referential, while also fixing the new->connecting->new thing.

state | description
-------|----------------
closed | The RTCPeerConnection object's [[IsClosed]] slot is true.
failed | None of the previous states apply and any of the RTCIceTransports or RTCDtlsTransports are in the "failed" state.
new | None of the previous states apply and all of the RTCIceTransports or RTCDtlsTransports are in the "new" or "closed" state, or there are no transports.
connecting | None of the previous states apply and any of the RTCIceTransports or RTCDtlsTransports are in the "new", "connecting" or "checking" state.
connected | None of the previous states apply and all RTCIceTransports and RTCDtlsTransports are in the "connected", "completed" or "closed" state.
disconnected | None of the previous states apply and any of the RTCIceTransports or RTCDtlsTransports are in the "disconnected" state.

This is pretty close to the code that eventually has to be written, which is a win in my book.

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

Received on Friday, 23 November 2018 13:12:29 UTC