Control rooms by code

Hi Everyone

I’m new in openvidu, and I see that I can Create rooms only put a “something” at last in the URL. How I can control this for only create approved rooms?

I don’t see very clear in the documentation.

Thanks a lot

I don’t really understand your question.

Sorry,

what we want our system that we are setting up is, in some way, that only people who have validated can enter the meeting. We want to say that only those to whom we have sent a link to the email, or that we can verify their email can access the videoconference.

A way to restrict access to a conference url.

Thanks

Sure. Every client needs a token to connect to a specific Session. The lifecycle of a session is:

  1. You initialize the Session from your application’s backend.
  2. You create a Connection for every user that will join the Session, also from your application’s backend. This Connection has a “token” property, that must be passed to the client-side.
  3. In the client-side, you consume the token on method session.connect(token).

You have further information here: https://docs.openvidu.io/en/latest/cheatsheet/join-session/

For example, OpenVidu Call demo application (OpenviduCall) simply initializes any Session that is requested and is not already created, and then generates a Connection for every user that requests it. It doesn’t ask for a password or any other identification method, but it could if necessary.

Best regards.

Thanks a lot for your answer