Direct endpoint-to-endpoint connections via MediaSoup

Is it feasible to build browser clients with mediasoup-client to use direct WebRTC client-to-client connections for live two-client sessions? The idea is to keep latency low and bandwidth off the servers when possible.

Is it feasible, with the library, to build a session management scheme to add participants by switching from client-to-client connections to client-to-SFU-to-client connections.

Any pointers to documentation or sample code will help me, if this is possible.

(MediaSoup === good stuff, thank you!)

It is certainly feasible, but requires quite a bit of rewriting of the mediasoup-client library. I have done this for V2 of mediasoup-client for testing. The most major thing is that mediasoup-client is designed to talk to an ICE-lite server, and hence lack some functionality for talking to itself. It needs, amongst other things, functionality for exchanging ICE candidates.

1 Like