wide-dress-57902
08/12/2025, 12:58 AMtall-airline-16756
08/12/2025, 12:58 AMtall-airline-16756
08/12/2025, 12:59 AMwide-dress-57902
08/12/2025, 1:02 AMtall-airline-16756
08/12/2025, 1:02 AMparticipant_connected
event—that’s how you know when someone new has popped into the room. This lets you confirm they’re there.
2. Check Audio Track Subscription: Take a look to see if the participant has any active audio tracks subscribed. If they do, it’s a good sign they’re tuned in and listening:
// Check if a specific participant has audio tracks
const participant = room.remoteParticipants.get(participantIdentity);
if (participant?.audioTrackPublications.size > 0) {
console.log(`${participant.identity} is currently listening`);
}
Just a heads up—LiveKit doesn’t have a direct “listening” status, but if someone’s in the room and has active audio tracks, it’s a pretty solid clue they’re paying attention.
Sources: src/room/events.ts