Detect if I joined the room

Is there a way that I can create an alert if I have joined the room. That is no one else is in the room but I am the first participant?

I tried to use it this way but it only works if a second person enters the room.

var api = new JitsiMeetExternalAPI(domain, options);

            api.addListener('participantJoined', () => {
                let numberOfParticipants = api.getNumberOfParticipants();
                alert("Participants current: " + numberOfParticipants);

what about conferenceJoined ?

Can it be used with the iFrame API?

oops, I checked with the Jitsi handbook and it’s called videoConferenceJoined in fact.

1 Like

Yup but that does not mean the same right?

It’s called when ‘the local user has joined the video conference.’ This said, if you are using secure domain and the user has to enter the password, you should wait for role changed to moderator instead.