Skip to content

Commit e467fc0

Browse files
committed
Call ConnectionManager.republish_tracks() after joining the call
1 parent 700e709 commit e467fc0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugins/getstream/vision_agents/plugins/getstream/stream_edge_transport.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ async def on_audio_received(pcm: PcmData):
326326

327327
# Start the connection
328328
await connection.__aenter__()
329+
# Re-publish already published tracks in case somebody is already on the call when we joined.
330+
# Otherwise, we won't get the video track from participants joined before us.
331+
await connection.republish_tracks()
329332
self._real_connection = connection
330333

331334
standardize_connection = StreamConnection(connection)

0 commit comments

Comments
 (0)