hey. how can i know that the user connected is fro...
# agents
a
hey. how can i know that the user connected is from telephony or web? @lively-winter-88668
f
you could add metadata to the participant to identify if they are joining from web or mobile
a
please help how? any example?
@ctx.room.on("participant_connected")
def on_participant_connected(participant: rtc.RemoteParticipant): print(participant) On doing this i don't see anything being printed. this event is not invoking. Im trying to connect from web and mobile. and this is not being invoked.
f
You can attach arbitrary values to a participant using the apis: https://docs.livekit.io/transport/data/state/participant-attributes/ Not sure about the event not being invoked, the callback looks correct.