Skip to content

Commit 231efc8

Browse files
committed
remove duplicate publish tracks
1 parent 2d08f1d commit 231efc8

File tree

1 file changed

+0
-8
lines changed
  • agents-core/vision_agents/core/agents

1 file changed

+0
-8
lines changed

agents-core/vision_agents/core/agents/agents.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,6 @@ async def join(self, call: Call) -> "AgentSessionContextManager":
248248

249249
self.logger.info(f"🤖 Agent joined call: {call.id}")
250250

251-
# Set up audio and video tracks together to avoid SDP issues
252-
audio_track = self._audio_track if self.publish_audio else None
253-
video_track = self._video_track if self.publish_video else None
254-
255-
if audio_track or video_track:
256-
with self.tracer.start_as_current_span("edge.publish_tracks"):
257-
await self.edge.publish_tracks(audio_track, video_track)
258-
259251
# Listen to incoming tracks if any component needs them
260252
# This is independent of publishing - agents can listen without publishing
261253
# (e.g., STT-only agents that respond via text chat)

0 commit comments

Comments
 (0)