DailyTransport: allow requesting video frames with any framerate
This commit is contained in:
@@ -151,6 +151,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### 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
|
- Fixed a `DeegramSTTService` connection issue when the user provided their own
|
||||||
`LiveOptions`.
|
`LiveOptions`.
|
||||||
|
|
||||||
|
|||||||
@@ -695,7 +695,9 @@ class DailyTransportClient(EventHandler):
|
|||||||
|
|
||||||
self._audio_renderers.setdefault(participant_id, {})[audio_source] = callback
|
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(
|
self._client.set_audio_renderer(
|
||||||
participant_id,
|
participant_id,
|
||||||
@@ -723,6 +725,10 @@ class DailyTransportClient(EventHandler):
|
|||||||
|
|
||||||
self._video_renderers.setdefault(participant_id, {})[video_source] = callback
|
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(
|
self._client.set_video_renderer(
|
||||||
participant_id,
|
participant_id,
|
||||||
self._video_frame_received,
|
self._video_frame_received,
|
||||||
@@ -1106,7 +1112,7 @@ class DailyInputTransport(BaseInputTransport):
|
|||||||
next_time = prev_time + 1 / framerate
|
next_time = prev_time + 1 / framerate
|
||||||
render_frame = (next_time - curr_time) < 0.1
|
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][
|
request_frame = self._video_renderers[participant_id][video_source][
|
||||||
"render_next_frame"
|
"render_next_frame"
|
||||||
].pop(0)
|
].pop(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user