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?
@pabloFuente would love some help on this one too
You can use standard OpenVidu features to allow students to subscribe only to teacher.
Hey @micael.gallego,
Thanks for the reply, can you provide some reference please?
But if there are n students there will be n+1 publishers, how do I identify which one is the teacher?
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/
Search the code:
session.connect(token, { clientData: myUserName })
1 Like