transports(daily): subscribe to the desired video source

This commit is contained in:
Aleix Conchillo Flaqué
2024-12-02 12:07:08 -08:00
parent bec46a87ae
commit 5e854c4d03
2 changed files with 7 additions and 3 deletions

View File

@@ -22,7 +22,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### 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 ## [0.0.49] - 2024-11-17

View File

@@ -499,9 +499,9 @@ class DailyTransportClient(EventHandler):
video_source: str = "camera", video_source: str = "camera",
color_format: str = "RGB", 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( 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 self._video_renderers[participant_id] = callback