Reputation: 3845
I have this code:
room = await Video.connect(token, { name: roomName });
room.participants.forEach(participantConnected);
room.on('participantConnected', participantConnected);
It calls participantConnected
for everyone except the user whose browser this is. How do I get the local participant?
Upvotes: 0
Views: 97
Reputation: 56
You can get the SID of the local participant in the following way:
room.localParticipant.sid
Upvotes: 1