gorgeous-school-28180
02/26/2025, 7:53 AMgray-monkey-83525
02/26/2025, 7:53 AMparticipant_connected
event not firing could be due to several reasons. One common cause is that the event listener is not set up correctly or is not being triggered because the participant was already in the room when the listener was added. According to LiveKit documentation, the participant_connected
event is only fired for participants that join after the local participant has connected. If the participant is already in the room when the listener is set up, the event will not be triggered.
To address this, ensure that the event listener is added before connecting to the room. Additionally, consider using the wait_for_participant
method, which handles both cases where the participant is already in the room or joins later, as suggested in this discussion.
Would you like more detailed guidance on setting up the event listener or handling participants already in the room?
Sources:
- LiveKit documentation
- this discussion 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.