How to get a room participant list

Greetings,

How can I get all the active participants in my Get a Room Video Conferencing?

Thanks.

Subscribing and store them with:

session.on('streamCreated', function (event) {
        // Subscribe to the Stream to receive it. HTML video will be appended to element with 'subscriber' id
        var subscriber = session.subscribe(event.stream, 'videos');
        myParticipants.push(subscriber); // <-------- like this
    });

Also using the REST API:

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

Hello @CSantosM I didn’t get subscriber list here I got only publisher list here.

Is there any way to get notification when new Connection created ?

Is there any way to get notification when new Connection created ?

Yes, using connectionCreated event

1 Like

Hey @pabloFuente,

Thank you for you fast reply, it is working for me as like a charm.
Again Thank you so much.