0

I am currently working on a simple WebRTC SFU in Node.js.

If I understand it correctly, the SFU should store the RTCPeerConnections for each client, and forward the streams between them. However I'm not sure if I should just add the incoming tracks from client A and B to the RTCPeerConnection of C, or create multiple RTCPeerConnections with client C for each stream. In the first example the SFU is only storing 3 connections for the 3 clients and it's sending multiple tracks per connection; and in the second example we are storing 9 connections (all 3 clients send 1 stream up and receive 2 streams down)

I know that using something like MediaSoup would be better, but this is a research project and not intended for large scale operation.

0 Answers0