lively-monkey-56100
10/22/2025, 8:40 AMtall-airline-16756
10/22/2025, 8:40 AMtall-airline-16756
10/22/2025, 8:42 AMisMuted property on the participant's track publications. For instance, in React Native, you might do something like this:
let muted = undefined;
participant.audioTrackPublications.forEach((pub) => {
muted = pub.isMuted;
});
if (muted === undefined) {
muted = true;
}
Also, it’s a great idea to listen for mute/unmute events so your UI stays updated in real-time. If you'd like, I’m happy to share examples for other SDKs—just let me know!
1. Checking if a call is ringing or still connecting: You can keep an eye on the sip.callStatus participant attribute by listening to participant events. The status might be ringing, dialing, active, or hangup. Here’s a quick example in Python:
async def async_on_participant_attributes_changed(changed_attributes, participant):
if 'sip.callStatus' in changed_attributes:
call_status = changed_attributes['sip.callStatus']
if call_status == 'ringing':
print("Call is ringing")
elif call_status == 'active':
print("Call is active")
I’m here if you want to dive deeper or need examples tailored to your SDK. Just give me a shout!
Sources: src/useParticipant.ts | Multiplatform/Views/ParticipantView.swift | lib/src/types/track_identifier.dart | livekit-rtc/livekit/rtc/room.py | Camera & microphone | LiveKit Docslively-monkey-56100
10/22/2025, 8:45 AMtall-airline-16756
10/22/2025, 8:45 AMsip.callStatus participant attribute. Usually, this is managed on the backend, but you can absolutely set it up on the frontend too, especially if you're using React Native. You’d just subscribe to participant events and watch for any changes in the sip.callStatus attribute.
For instance, in your React Native app, you can listen for changes in participant attributes and update the status as needed. If you'd like, I’d be happy to walk you through how to implement this in React Native—just let me know!lively-monkey-56100
10/22/2025, 9:00 AMtall-airline-16756
10/22/2025, 9:00 AMlively-monkey-56100
10/22/2025, 9:02 AM