How to make 2 room types session

Hey,
In our current Twilio app, we have the functionality of having a “pre-interview” screen where the admin can decide which participant will be added to the interview. Admin sees two columns “Interview room” and “Waiting room” and he can see video and hear audio from users that are in those two rooms. Then he can move users between those rooms.
In addition, users in the “Interview room” can hear each other and can hear the admin and cannot hear users from the “Waiting room”. On the other side, users from the “Waiting room” could not hear the admin and could not hear users from the “Interview room”.

With Twilio it was easy to accomplish - we were adding/removing audio & video tracks depending on which room the user was.

The problem with zoom sdk is that it is not as flexible as Twilio.
We thought that such a scenario could be done with Zoom subsession but unfortunately is it not possible. The problem is with admin - it only sees users from subsessions when he is in that subsession, but it is not possible to be in 2 subsesssions at once (“Waiting room” and “interview Room”) so we cannot use it.

Another option would be to use “mute” functionality. The interviewer could “mute” users that are in the “Waiting Room” - that way they cannot be heard. The problem is that they will still hear users from the “Interview Room” and will hear admin.

Do you have any solutions for this? It is possible to accomplish such a scenario with Zoom or do we need to change our logic?

Hey @pjanecze ,

Happy to help!

Similar to how the Twilio tracks work, you may render/not render the respective users to the user/s who should see/not see them via the renderVideo/stopRenderVideo function or the attachVideo/detachVideo function.

Subscribe to users video (canvas approach): Stream | Zoom Video SDK for Web - 1.10.7
Unsubscribe to users video (canvas approach): Stream | Zoom Video SDK for Web - 1.10.7

Subscribe to users video (individual html element approach): Stream | Zoom Video SDK for Web - 1.10.7
Unsubscribe to users video (individual html element approach): Stream | Zoom Video SDK for Web - 1.10.7


You may also enable/disable the respective users audio (similar to subscribe/unsubscribe) to the user/s who should hear/not hear them via the muteUserAudioLocally function.

Unsubscribe to users audio: Stream | Zoom Video SDK for Web - 1.10.7
Subscribe to users audio: Stream | Zoom Video SDK for Web - 1.10.7

Best,
Tommy

thanks! muteUserAudioLocally is an answer for me!

1 Like

Happy to help @pjanecze !