Skip to content

Commit d02e2a1

Browse files
committed
Call ConnectionManager.republish_tracks() after joining the call
1 parent 1df36ea commit d02e2a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)