From 5e854c4d03f07eef3d369d04cf6feb91222a5181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 2 Dec 2024 12:07:08 -0800 Subject: [PATCH] transports(daily): subscribe to the desired video source --- CHANGELOG.md | 6 +++++- src/pipecat/transports/services/daily.py | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2d587674..8f4932eec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Fixed Google Gemini message handling to properly convert appended messages to Gemini's required format +- `DailyTransport.capture_participant_video` now allows capturing user's screen + share by simply passing `video_source="screenVideo"`. + +- Fixed Google Gemini message handling to properly convert appended messages to + Gemini's required format. ## [0.0.49] - 2024-11-17 diff --git a/src/pipecat/transports/services/daily.py b/src/pipecat/transports/services/daily.py index 4a8bcfb14..3dcd2094e 100644 --- a/src/pipecat/transports/services/daily.py +++ b/src/pipecat/transports/services/daily.py @@ -499,9 +499,9 @@ class DailyTransportClient(EventHandler): video_source: str = "camera", color_format: str = "RGB", ): - # Only enable camera subscription on this participant + # Only enable the desired video source subscription on this participant. await self.update_subscriptions( - participant_settings={participant_id: {"media": {"camera": "subscribed"}}} + participant_settings={participant_id: {"media": {video_source: "subscribed"}}} ) self._video_renderers[participant_id] = callback