From 4b3fd28b10da6993267cebf38c2a56777cfd960b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 11 Sep 2024 14:05:13 +0800 Subject: [PATCH] bugfix --- rtcllm/aav.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtcllm/aav.py b/rtcllm/aav.py index f212c42..6c446c6 100644 --- a/rtcllm/aav.py +++ b/rtcllm/aav.py @@ -106,8 +106,10 @@ class LoopingVideoTrack(VideoStreamTrack): self.iteration = 0 async def recv(self): + frame = await self.player.video.recv() + print(f'{self.__class__.__name__}, {self.player.video.readyState}') if self.player.video.readyState != 'live': self.player = MediaPlayer(self.player._file_path) - frame = await self.player.video.recv() + frame = await self.player.video.recv() return frame