Transport id in oniceconnectionstatechange, onconnectionstatechange handlers

22 views
Skip to first unread message

Alexander Abagian

unread,
Sep 20, 2022, 12:19:14 PM9/20/22
to discuss-webrtc
Hi,

My PeerConnection includes several transports (bundles). But oniceconnectionstatechange(event) and onconnectionstatechange(event) parameter doesn't show which transport changed the connection state. Is it a defect, or these events shows aggregated state for all PeerConnection transports ?

I also encovered that now only one handler is shown in webrtc-internals log, while two transport channels were used in the same PeerConnection (and both succeeded). Recently, there were two of them (one per channel with same state if both were OK).

Philipp Hancke

unread,
Sep 20, 2022, 1:10:05 PM9/20/22
to discuss...@googlegroups.com
those states are aggregate states by design.

If you don't want to use BUNDLE then you'll need to go to the changes of the individual ICETransport
and DTLSTransport

What you may have seen in webrtc-internals until recently might have been the "legacy" state change which was defined differently and is now gone?

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/ec8e21c9-c5d8-4c2c-b2d9-72c7567372c0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages