I want to create multiple chat rooms on a single page, where user can video/audio/text chat for different rooms. I have done for a single, but I don't have much idea about connection with on a single page.
I am using RTCMultiConnection V3.0 for single chat room.
I want to achieve mentioned in the below image.
Can anyone help me to achieve this?
Either use multiple RTCMultiConnection instances:
Or use this trick:
Now each user can join any room:
Remember, we set
{broadcast:true}
above; which means thatjoin
method will merely allows you join only the room owner/moderator/initiator.You need to ask room moderator to give you list of all his participants.
You can even give each new user's information to existing participants.
You can use getPublicModerators method to get list of all public rooms. A live demo.