From 85cdbcbbadd51d8d6d0dc5b9d7938101eae04d1b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 11 Sep 2024 14:13:26 +0800 Subject: [PATCH] bugfix --- rtcllm/aav.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtcllm/aav.py b/rtcllm/aav.py index bf65e2d..032ed8d 100644 --- a/rtcllm/aav.py +++ b/rtcllm/aav.py @@ -103,11 +103,11 @@ class LoopingVideoTrack(VideoStreamTrack): def __init__(self, filename): super().__init__() self.player = MyMediaPlayer(filename) - self.iteration = 0 + print(dir(self.player) async def recv(self): frame = await self.player.video.recv() - print(f'{self.__class__.__name__}, {self.player.video.readyState}') + print(f'{self.__class__.__name__}, {self.source.duration=}, {self.source.time=}') if self.player.video.readyState != 'live': self.player = MyMediaPlayer(self.player._file_path) frame = await self.player.video.recv()