Skip to content

Commit ea9205f

Browse files
authored
bump livekit-ffi to 0.12.6 (livekit#344)
1 parent 61cf8df commit ea9205f

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

examples/room_example.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ def on_track_subscribed(
4949
print(f"participant identity: {participant.identity}")
5050
print(f"participant name: {participant.name}")
5151
print(f"participant kind: {participant.kind}")
52-
print(
53-
f"participant track publications: {
54-
participant.track_publications}"
55-
)
52+
print(f"participant track publications: {participant.track_publications}")
5653
for tid, publication in participant.track_publications.items():
5754
print(f"\ttrack id: {tid}")
5855
print(f"\t\ttrack publication: {publication}")

examples/video-stream/audio_wave.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
import cv2
1616
except ImportError:
1717
raise RuntimeError(
18-
"cv2 is required to run this example, "
19-
"install with `pip install opencv-python`"
18+
"cv2 is required to run this example, install with `pip install opencv-python`"
2019
)
2120

2221
# ensure LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET are set

examples/video-stream/video_play.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ async def _log_fps(av_sync: rtc.AVSynchronizer):
195195
first_video_frame, video_timestamp = await video_stream.__anext__()
196196
first_audio_frame, audio_timestamp = await audio_stream.__anext__()
197197
logger.info(
198-
f"first video duration: {1/media_info.video_fps:.3f}s, "
198+
f"first video duration: {1 / media_info.video_fps:.3f}s, "
199199
f"first audio duration: {first_audio_frame.duration:.3f}s"
200200
)
201201
await av_sync.push(first_video_frame, video_timestamp)

livekit-rtc/livekit/rtc/synchronizer.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,15 @@ async def wait_next_process(self) -> None:
179179
# check if significantly behind schedule
180180
if -sleep_time > self._max_delay_tolerance_secs:
181181
logger.warning(
182-
f"Frame capture was behind schedule for "
183-
f"{-sleep_time * 1000:.2f} ms"
182+
f"Frame capture was behind schedule for {-sleep_time * 1000:.2f} ms"
184183
)
185184
self._next_frame_time = time.perf_counter()
186185

187186
def after_process(self) -> None:
188187
"""Update timing information after processing a frame."""
189-
assert (
190-
self._next_frame_time is not None
191-
), "wait_next_process must be called first"
188+
assert self._next_frame_time is not None, (
189+
"wait_next_process must be called first"
190+
)
192191

193192
# update timing information
194193
self._send_timestamps.append(time.perf_counter())

0 commit comments

Comments
 (0)