Skip to content

Commit fed0f8f

Browse files
committed
update example as well
1 parent 89715ca commit fed0f8f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/video-stream/audio_wave.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ async def main(room: rtc.Room, room_name: str):
296296
finally:
297297
audio_task.cancel()
298298
await av_sync.aclose()
299+
audio_source.close()
300+
video_source.close()
299301

300302

301303
if __name__ == "__main__":

examples/video-stream/video_play.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ async def _push_frames(
181181
finally:
182182
await streamer.aclose()
183183
await av_sync.aclose()
184+
audio_source.close()
185+
video_source.close()
184186

185187

186188
if __name__ == "__main__":

0 commit comments

Comments
 (0)