File tree Expand file tree Collapse file tree 4 files changed +7
-12
lines changed
Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Original file line number Diff line number Diff 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"\t track id: { tid } " )
5855 print (f"\t \t track publication: { publication } " )
Original file line number Diff line number Diff line change 1515 import cv2
1616except 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments