# Many to one VS many to many

**URL:** <https://devforum.zoom.us/t/many-to-one-vs-many-to-many/48300>\
**Category:** Video SDK\
**Created:** [April 19, 2021, 12:04pm UTC](https://devforum.zoom.us/t/many-to-one-vs-many-to-many/48300 "2021-04-19T12:04:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinsergei](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sinsergei/32/18827_2.png) [@sinsergei](https://devforum.zoom.us/u/sinsergei)\
**Post date:** [April 19, 2021, 12:04pm UTC](https://devforum.zoom.us/t/many-to-one-vs-many-to-many/48300/1 "2021-04-19T12:04:36Z")

</div>

Sample:

User(host) has a call with attendees.  
Is that possible to allow attendees to see only hosts video, but not each others video?  
I mean solve that not during rendering, but somewhere on sending data to backend?

Lets say every participant has the video enabled.  
Host → can see all the videos.  
Any attendee → can see only host video.

BR, Siarhei.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 19, 2021, 10:08pm UTC](https://devforum.zoom.us/t/many-to-one-vs-many-to-many/48300/2 "2021-04-19T22:08:43Z")

</div>

Hey @sinsergei,

Thanks for using the dev forum!

Just to confirm, you are using the Video SDK correct? If so, each user has their own view. So to achieve the desired scenario, you would check if the current user is a host. If they are you would show the view for each participant by iterating through all the participants in the session. If they aren’t, you would just grab the user object of the host and show his/her view.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![sinsergei](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sinsergei/32/18827_2.png) [@sinsergei](https://devforum.zoom.us/u/sinsergei)\
**Post date:** [April 20, 2021, 1:48pm UTC](https://devforum.zoom.us/t/many-to-one-vs-many-to-many/48300/3 "2021-04-20T13:48:16Z")

</div>

Yes, I’m using VideoSDK.

Your solution is happening on receiver side, i.e. rendering phase.  
In my case I just don’t want to send there any data that shouldn’t be rendered.

Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 20, 2021, 6:10pm UTC](https://devforum.zoom.us/t/many-to-one-vs-many-to-many/48300/4 "2021-04-20T18:10:30Z")

</div>

Hey @sinsergei,

I see. You can mute both the audio and the video of the user on the sender side programmatically and nothing from that user will be sent over.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![sinsergei](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sinsergei/32/18827_2.png) [@sinsergei](https://devforum.zoom.us/u/sinsergei)\
**Post date:** [April 22, 2021, 7:08pm UTC](https://devforum.zoom.us/t/many-to-one-vs-many-to-many/48300/5 "2021-04-22T19:08:55Z")

</div>

Thanks for help, but this is actually my question - how to share my video only with host, but not with other users?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 22, 2021, 8:42pm UTC](https://devforum.zoom.us/t/many-to-one-vs-many-to-many/48300/6 "2021-04-22T20:42:36Z")

</div>

Hey @sinsergei,

You would begin sharing to the session, but only the user that is a host subscribes to the share pipe.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 23, 2021, 6:43am UTC](https://devforum.zoom.us/t/many-to-one-vs-many-to-many/48300/7 "2021-05-23T06:43:14Z")

</div>

Closed on May 23, 2021, 6:43am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
