Media Routing in TCP if UDP fails

Is it possible to switch to TCP if UDP connection fails to connect after let’s say 5.5 seconds ?

PoC:

  • 6 media streams in a session all using UDP
  • 1 user (subscriber enters to the session) enters
  • User tries to subscribe to the streams using UDP
  • User fails to subscribe to the streams using UDP.
  • User is switched to TCP
  • User tries to subscribe again with TCP
  • handshake OK (hopefully)

But this is what ICE basically do when you turn on enableTcp and preferUdp options in WebRtcTransportOptions.

thank you! will try