Merge pull request #769 from pipecat-ai/aleix/daily-subscribe-video-source
transports(daily): subscribe to the desired video source
This commit is contained in:
@@ -505,9 +505,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
|
||||
|
||||
Reference in New Issue
Block a user