in the swift SDK, is there a callback for when a r...
# ask-ai
m
in the swift SDK, is there a callback for when a room adds a remote participant?
t
Thanks for reaching out, Nate. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
In the Swift SDK, you can use the
room(_:participantDidConnect:)
method from the
RoomDelegate
protocol to handle when a remote participant joins a room. This method is called with the
Room
instance and the
RemoteParticipant
that has connected. Let me know if you need further assistance! Sources: room(_:participantDidConnect:) | Documentation | RoomDelegate | Documentation
m
is there a callback for when the audio track gets added to a participant
t
In the Swift SDK, you can use the
participant(_:didSubscribeTrack:)
method to handle when an audio track is added to a participant. This method is part of the delegate and is triggered when the
LocalParticipant
subscribes to a new
RemoteTrackPublication
. Let me know if you need further clarification! Sources: participant(_:didSubscribeTrack:) | Documentation