OpenVidu Web Component: Check if Session is Active or Not

Greetings all,

Is there a way to check if session is active or not. I want to use this feature to let participant in to the meeting after a publisher has published the meeting.

If I didn’t do this, any participant can start a meeting (Which I don’t want them to)

Thanks.

Hello,

  1. You MUST have a back-end API (in production)

  2. Call the OpenVidu REST API ‘Retrieve active session info’ method from your back-end API (CURL, whatever…)

https://docs.openvidu.io/en/2.15.0/reference-docs/REST-API/#get-apisessionsltsession_idgt

  1. Profit? :slight_smile: Check the HTTP response code and send it over from your back-end to your front-end and allow the participant to join or not according to that

Regards,
Mihail

2 Likes

Thank you so much for the information