From 46c84f08cbf21783ae7420179c4926a030cfaf42 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 11 Sep 2024 10:38:27 +0800 Subject: [PATCH] bugfix --- rtcllm/rtc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtcllm/rtc.py b/rtcllm/rtc.py index 6203080..74d5115 100644 --- a/rtcllm/rtc.py +++ b/rtcllm/rtc.py @@ -127,8 +127,8 @@ class RTCLLM: 'player':player, 'pc':pc }) - pc.addTrack(MediaStreamTrack(player.audio)) - pc.addTrack(MediaStreamTrack(player.video)) + pc.addTrack(AudioStreamTrack(player.audio)) + pc.addTrack(VideoStreamTrack(player.video)) await self.ws_send(json.dumps({'type':'callAccepted', 'to':data['from']})) async def pc_track(self, peerid, track):