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);
});