Broadcasting of stream from One to Many using multiple Mediasoup Server instances

  1. sfu1->sfu2: invoke grpc to call createPipeTransport (listenIp of sfu2) in sfu2, and you need return sfu2‘s tuple.localIp and tuple.localPort to sfu1 by grpc.
  2. sfu1->sfu1: call createPipeTransport(listenIp of sfu1) in sfu1, and you will get tuple.localIp+tuple.localPort of sfu1
  3. sfu1->>sfu2: invoke grpc to call PipeTransport.connect(tuple.localIp and tuple.localPort of sfu1) in sfu2, and the PipeTransport is the one which you have created in the first step
  4. sfu1->>sfu1: call PipeTransports.connect(tuple.localIp and tuple.localPort of sfu2) in sfu1, and the PipeTransport is the one which you have created in the second step
  5. sfu1->>sfu2: invoke grpc to call PipeTransport.consume in sfu2
  6. sfu1->sfu1: call PipeTransport.produce in sfu1

After doing these steps ,sfu1 will receive the media packet from sfu2

2 Likes