From e50a6501fb8c4d27e2aba6f8ec9d0916c770a941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Sat, 6 Apr 2024 07:39:51 -0700 Subject: [PATCH] transport: only use fps to set maxFramerate --- src/dailyai/transports/abstract_transport.py | 3 +-- src/dailyai/transports/daily_transport.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dailyai/transports/abstract_transport.py b/src/dailyai/transports/abstract_transport.py index 393107971..5f9b59e0d 100644 --- a/src/dailyai/transports/abstract_transport.py +++ b/src/dailyai/transports/abstract_transport.py @@ -22,10 +22,9 @@ 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 + self._fps = kwargs.get("fps") or 10 self._logger: logging.Logger = logging.getLogger("dailyai.transport") diff --git a/src/dailyai/transports/daily_transport.py b/src/dailyai/transports/daily_transport.py index 196865841..574762d84 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": self._camera_max_framerate, + "maxFramerate": self._fps, } }, }