Check User Role

Greetings,

How to check a user role upon joining a session? I’m working with webcomponent, and I will like to know the user role open joining a session. This will allow giving the publisher certain privileges.

Thanks.

You can use this method of openvidu-browser to see what the user is able to do (directly related to its role): https://docs.openvidu.io/en/2.15.0/api/openvidu-browser/classes/session.html#capabilities

Thank you so much for the quick response