Skip to content

Commit

Permalink
add screenVideo subscription for daily transport service
Browse files Browse the repository at this point in the history
  • Loading branch information
ngamolsky committed Nov 16, 2024
1 parent a2a9472 commit cbb0e8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pipecat/transports/services/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,11 @@ async def capture_participant_video(
video_source: str = "camera",
color_format: str = "RGB",
):
# Only enable camera subscription on this participant
# Try to enable camera and screen subscription on this participant
await self.update_subscriptions(
participant_settings={participant_id: {"media": {"camera": "subscribed"}}}
participant_settings={
participant_id: {"media": {"camera": "subscribed", "screenVideo": "subscribed"}}
}
)

self._video_renderers[participant_id] = callback
Expand Down

0 comments on commit cbb0e8c

Please sign in to comment.