Hi,
the "COMEDIA" mode was added for plain
RTP, there is no such
thing as standalone "RTC". I guess the implementation could be
promoted from the final class (RtpEndpoint) to the common ancestor
in the inheritance tree, BaseRtpEndpoint, from which both
RtpEndpoint and WebRtcEndpoint derive.
However, in any case, I doubt this would work at all. Every WebRTC
client out there will expect to use ICE for WebRTC, and this mean
exchanging ICE candidates with the media server. Other WebRTC media
servers do similar to Kurento, and implement COMEDIA for plain RTP
(such as mediasoup), but it just doesn't make sense for WebRTC.
Anyway, unless you are dealing with clients that are able to have a
direct connection with the internet (no intermediary hardware), you
would need ICE anyways. And I cannot think of what type of clients
would these be. Every home or office connection will be placed
behind a router or firewall. Most if not all mobile phone devices
are behind a CGNAT. It's just not common being able to connect
directly to the internet.
Regarding the ICE process for each track: most client use the BUNDLE
mechanism by default, which transmits both video and audio over the
same UDP ports, thus requiring only one single ICE process instead
of how it traditionally was done, once for each media type. I'm
afraid that's the extent of the optimizations done in WebRTC; you
still need to allocate a send-recv UDP port for every stream, but
that's normal because at the architecture level, every participant's
media is basically its own independent and isolated flow of data.
If top speed is a priority for you, and you don't need all the media
processing and recording abilities that Kurento provides, you might
be interested in mediasoup. It is a very low-level, lightweight
media server, which does just the minimum required to route media
between participants, and the benefits of that is that everything is
much much faster than with Kurento...
On the other hand, have a look at the pre-release builds of the
upcoming Kurento 6.18. We had a contribution that speeded up quite a
bit the connection establishment time:
https://doc-kurento.readthedocs.io/en/latest/project/relnotes/v6_18_0.html#webrtc-dtls-quick-connection
Regards