Sending stream to only selected participants

Two quick questions-

  1. Is it possible to send audio/video to selected peers instead of all in a multiparty video conference?

  2. Do we need to implement the mediasoup server as well using the APIs or the defaults ones available with the demo’s can be used as is and its just the client that we have to write for our requirements using mediasoup client library and its APIs?

Any help would be really appreciated.

I think there are a few misunderstandings about SFUs in general and mediasoup in particular.

But to answer your questions:

  1. Yes (of course). Using the mediasoup software you have complete control over who receives what. But that needs to be built in your application.
  2. Yes (of course). The demo is just an example of using mediasoup server and mediasoup-client in a webapp. There everybody in a “room” (application specific) receives everything. This is decided at the app level, not at mediasoup level. And to link to question 1: by implementing a mediasoup server based app you will be able to control which video(s)/audio(s) is/are sent to which peer. But note that there are no “peers” in mediasoup. Just endpoints that send/receive audio/video/data as instructed by your app.
1 Like

Thanks. I was able to add the custom logic and worked the way I wanted.