Closed Hu-Said closed 7 months ago
onconnectionstatechange sounds like what you need.
onconnectionstatechange sounds like what you need.
No, this can only know his connection status. I want to know his connection mode, such as relay or host, or something else.
I want to know when the WebRTC connection is successful, how do I know what the current connection mode is? Where can I get this information?
Just like the four in this screenshot, I want to know which mode is used after the connection is successful.
I know there is a type in RTCIceCandidate to know this mode, but this is a collection, and I hope to accurately find the RTCIceCandidate type being used by the current connection.
The RtpIceChannel has a NominatedEntry property that contains the local and remote ICE candidates that were used.
The RtpIceChannel has a NominatedEntry property that contains the local and remote ICE candidates that were used.
Yes I see that and this does what I need, thanks for the reply!
I want to know when the WebRTC connection is successful, how do I know what the current connection mode is? Where can I get this information?![image](https://github.com/sipsorcery-org/sipsorcery/assets/63393002/02fe21d8-48ed-4380-baaf-dffce3a7c9d1)