From a253606d50d05e15462b28ae285e79127a1d50f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 26 Aug 2024 11:11:28 -0700 Subject: [PATCH] services(daily): on_joined now returns all data not only participant --- src/pipecat/transports/services/daily.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pipecat/transports/services/daily.py b/src/pipecat/transports/services/daily.py index 188ae65ce..18d8fb49c 100644 --- a/src/pipecat/transports/services/daily.py +++ b/src/pipecat/transports/services/daily.py @@ -306,7 +306,7 @@ class DailyTransportClient(EventHandler): if self._token and self._params.transcription_enabled: await self._start_transcription() - await self._callbacks.on_joined(data["participants"]["local"]) + await self._callbacks.on_joined(data) else: error_msg = f"Error joining {self._room_url}: {error}" logger.error(error_msg) @@ -874,8 +874,8 @@ class DailyTransport(BaseTransport): self._input.capture_participant_video( participant_id, framerate, video_source, color_format) - async def _on_joined(self, participant): - await self._call_event_handler("on_joined", participant) + async def _on_joined(self, data): + await self._call_event_handler("on_joined", data) async def _on_left(self): await self._call_event_handler("on_left")