I have implemented the roles functionality in mediasoup.
When 1st user enter the room, the room will locked through Socket and if 1st user is host then host will logged in to the system. And after that, other users room is locked and host will allow the user to enter the room. And functionality works fine.
But if 1st user is simple user, and the room is locked through Socket. The 1st user is entered to the room. But when host will try to enter, he entered the room but all the functionality like mic, camera, chat, screenshare everything will stop. And if other user try to logged in, the room is locked and no one will there to allow the user.
This sounds like something in your signaling layer is mixing up the clients.
I’m not sure I can fix the issue, but running mediasoup with debug flags will likely show you some errors or oversights. I believe you just need to add DEBUG=“mediasoup:*” as an environmnet variable to your server run time. This should highlight anything that is not connected or fails to connect etc.
Ok… and what about this error
When i get device from mediasoup through this function new mediasoupClient.Device(), then i get this error in device object.