# Share video with one user only in session

**URL:** <https://openvidu.discourse.group/t/share-video-with-one-user-only-in-session/176>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [February 22, 2020, 2:18pm UTC](https://openvidu.discourse.group/t/share-video-with-one-user-only-in-session/176 "2020-02-22T14:18:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivekkairi](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/vivekkairi/32/94_2.png) [@vivekkairi](https://openvidu.discourse.group/u/vivekkairi)\
**Post date:** [February 22, 2020, 2:18pm UTC](https://openvidu.discourse.group/t/share-video-with-one-user-only-in-session/176/1 "2020-02-22T14:18:10Z")

</div>

I’m building a one to many video call app, the Main publisher i.e one should be able to see streams of all connected(many). But they should not see each other.

For eg: A teacher has 10 students, so teachers should see faces of all 10 students but students should see only teacher’s cam.  
Any leads on that?

---

<div class="post-metadata">

**Author:** ![vivekkairi](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/vivekkairi/32/94_2.png) [@vivekkairi](https://openvidu.discourse.group/u/vivekkairi)\
**Post date:** [February 22, 2020, 3:33pm UTC](https://openvidu.discourse.group/t/share-video-with-one-user-only-in-session/176/2 "2020-02-22T15:33:58Z")

</div>

@pabloFuente would love some help on this one too

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [February 22, 2020, 4:41pm UTC](https://openvidu.discourse.group/t/share-video-with-one-user-only-in-session/176/3 "2020-02-22T16:41:12Z")

</div>

You can use standard OpenVidu features to allow students to subscribe only to teacher.

---

<div class="post-metadata">

**Author:** ![vivekkairi](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/vivekkairi/32/94_2.png) [@vivekkairi](https://openvidu.discourse.group/u/vivekkairi)\
**Post date:** [February 22, 2020, 4:42pm UTC](https://openvidu.discourse.group/t/share-video-with-one-user-only-in-session/176/4 "2020-02-22T16:42:12Z")

</div>

Hey @micael.gallego,  
Thanks for the reply, can you provide some reference please?

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [February 22, 2020, 4:45pm UTC](https://openvidu.discourse.group/t/share-video-with-one-user-only-in-session/176/5 "2020-02-22T16:45:08Z")

</div>

[https://openvidu.io/docs/cheatsheet/subscribe-unsubscribe/](https://openvidu.io/docs/cheatsheet/subscribe-unsubscribe/)

---

<div class="post-metadata">

**Author:** ![vivekkairi](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/vivekkairi/32/94_2.png) [@vivekkairi](https://openvidu.discourse.group/u/vivekkairi)\
**Post date:** [February 22, 2020, 4:56pm UTC](https://openvidu.discourse.group/t/share-video-with-one-user-only-in-session/176/6 "2020-02-22T16:56:33Z")

</div>

But if there are n students there will be n+1 publishers, how do I identify which one is the teacher?

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [February 22, 2020, 5:05pm UTC](https://openvidu.discourse.group/t/share-video-with-one-user-only-in-session/176/7 "2020-02-22T17:05:41Z")

</div>

You can include additional info in any participant so any other participant can identify it.

When a user connect to a session, can specify additional information that can be retrieved later by other participants.

Take a look to this tutorial [https://openvidu.io/docs/tutorials/openvidu-insecure-js/](https://openvidu.io/docs/tutorials/openvidu-insecure-js/)

Search the code:

`session.connect(token, { clientData: myUserName })`
