rich-napkin-4834
07/09/2025, 12:29 PMctx.add_participant_entrypoint(entrypoint1)
ctx.add_participant_entrypoint(entrypoint2)
ctx.add_participant_entrypoint(entrypoint3)
await ctx.connect()
where within each sub-entrypoint there is a defferent:
global controller, lang, conv_agent_instances, entrypoints_flags
if 'user1_identifier' not in participant.identity or entrypoints_flags['user1']:
return
print(f'################## user1 conversation entrypoint ##################')
entrypoints_flags['user1'] = True
# more logic
session = AgentSession(vad=ctx.proc.userdata["vad"])
await session.start(args)
block.
then I use:
if __name__ == "__main__":
cli.run_app(WorkerOptions(entrypoint_fnc=joined_entrypoint, prewarm_fnc=prewarm, job_memory_warn_mb=1000, agent_name="multiagent"))
in my room there are 2 participants, one silent most of the time and one always active, when the silent one joins some tracks should be subscribed and unsubscribed.
My issue is:
I can't use any track/track publication identifier to differentiate between the tracks of the local participant.
the local participant have 3 identical tracks (different SID).
I want to add to their metadata some identifier for the track/publication.
can it be done?tall-airline-16756
07/09/2025, 12:29 PMtall-airline-16756
07/09/2025, 12:29 PM