DailyTransport: allow requesting video frames with any framerate

This commit is contained in:
Aleix Conchillo Flaqué
2025-05-25 01:24:49 -07:00
parent 4eed335bc7
commit ecf878e14d
2 changed files with 11 additions and 2 deletions

View File

@@ -151,6 +151,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed a `DailyTransport` issue that was not allow capturing video frames if
framerate was greater than zero.
- Fixed a `DeegramSTTService` connection issue when the user provided their own
`LiveOptions`.

View File

@@ -695,7 +695,9 @@ class DailyTransportClient(EventHandler):
self._audio_renderers.setdefault(participant_id, {})[audio_source] = callback
logger.info(f"Starting to capture [{audio_source}] audio from participant {participant_id}")
logger.debug(
f"Starting to capture [{audio_source}] audio from participant {participant_id}"
)
self._client.set_audio_renderer(
participant_id,
@@ -723,6 +725,10 @@ class DailyTransportClient(EventHandler):
self._video_renderers.setdefault(participant_id, {})[video_source] = callback
logger.debug(
f"Starting to capture [{video_source}] video from participant {participant_id}"
)
self._client.set_video_renderer(
participant_id,
self._video_frame_received,
@@ -1106,7 +1112,7 @@ class DailyInputTransport(BaseInputTransport):
next_time = prev_time + 1 / framerate
render_frame = (next_time - curr_time) < 0.1
elif self._video_renderers[participant_id][video_source]["render_next_frame"]:
if self._video_renderers[participant_id][video_source]["render_next_frame"]:
request_frame = self._video_renderers[participant_id][video_source][
"render_next_frame"
].pop(0)