diff --git a/src/dailyai/transports/abstract_transport.py b/src/dailyai/transports/abstract_transport.py index 21e6c02a2..393107971 100644 --- a/src/dailyai/transports/abstract_transport.py +++ b/src/dailyai/transports/abstract_transport.py @@ -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 diff --git a/src/dailyai/transports/daily_transport.py b/src/dailyai/transports/daily_transport.py index 236df5773..196865841 100644 --- a/src/dailyai/transports/daily_transport.py +++ b/src/dailyai/transports/daily_transport.py @@ -224,7 +224,7 @@ def _prerun(self): "low": { "maxBitrate": self._camera_max_bitrate, "scaleResolutionDownBy": 1.333, - "maxFramerate": 30, + "maxFramerate": self._camera_max_framerate, } }, }