Skip to content

Commit

Permalink
Merge pull request #108 from daily-co/add-camera-max-framerate
Browse files Browse the repository at this point in the history
transport: add camera_max_framerate argument
  • Loading branch information
aconchillo authored Apr 6, 2024
2 parents ea52e73 + 96b2337 commit dd696be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dailyai/transports/abstract_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def __init__(self, **kwargs):
self._camera_width = kwargs.get("camera_width") or 1024
self._camera_height = kwargs.get("camera_height") or 768
self._camera_max_bitrate = kwargs.get("camera_max_bitrate") or 250000
self._camera_max_framerate = kwargs.get("camera_max_framerate") or 30
self._speaker_enabled = kwargs.get("speaker_enabled") or False
self._speaker_sample_rate = kwargs.get("speaker_sample_rate") or 16000
self._fps = kwargs.get("fps") or 8
Expand Down
2 changes: 1 addition & 1 deletion src/dailyai/transports/daily_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def _prerun(self):
"low": {
"maxBitrate": self._camera_max_bitrate,
"scaleResolutionDownBy": 1.333,
"maxFramerate": 30,
"maxFramerate": self._camera_max_framerate,
}
},
}
Expand Down

0 comments on commit dd696be

Please sign in to comment.