RTCPeerConnectionWeb's connectionState is calculated based on iceConnectionState vs connectionState
cterefinko opened this issue · 1 comments
cterefinko commented
RTCPeerConnectionWeb's connectionState is updated by onIceConnectionStateChange and is calculated based on iceConnectionState. The more appropriate onConnectionStateChange and connectionState aren't exposed via dart2js (issue).
Filing this issue to tracking updating to use those once added.
The effect of using iceConnectionState is that since RTCIceConnectionState has an extra 'checking' state vs RTCPeerConnectionState, peerConnectionStateForString reports RTCPeerConnectionStateClosed for the unknown checking state.
amantoux commented
dart-lang/sdk#48735 is available with Flutter 3.3
I guess we can move forward on this