Short YouTube exchange addressing whether WebRTC is based on TCP or UDP. Speakers explain that WebRTC itself uses ICE (an abstraction) which can use either UDP or TCP; media (voice/video using SRTP) typically prefers UDP while signaling/data channels often run over TCP today (though HTTP/2 or HTTP/3 may influence transport). The transcript notes that reliability layers can be run on top of UDP when needed.
So is WebRTC based on TCP or UDP?
Neither of these. So WebRTC uses ICE as a abstraction of the transport layer and ICE itself can use either UDP or TCP and it does so in a way that is abstracted away from us developer. You can find out what it is using but you have very little control over what is getting used. Typically Web3 will prefer UDP over TCP because we want the properties of UDP being able to lose a packet because everything else in the system is built for that.
I would even say that for the media we prefer udp. That's where on the RTC the SRTP stuff and voice and video data channel for the signaling we end up mostly over TCP today, although we might end up on UDP depending on the version of HTTP that we are running.
Yes, but we will still then run a abstraction on top of UDP that is providing reliability.