This commit is contained in:
yumoqing 2024-09-11 10:38:27 +08:00
parent 4313c57a5d
commit 46c84f08cb

View File

@ -127,8 +127,8 @@ class RTCLLM:
'player':player, 'player':player,
'pc':pc 'pc':pc
}) })
pc.addTrack(MediaStreamTrack(player.audio)) pc.addTrack(AudioStreamTrack(player.audio))
pc.addTrack(MediaStreamTrack(player.video)) pc.addTrack(VideoStreamTrack(player.video))
await self.ws_send(json.dumps({'type':'callAccepted', 'to':data['from']})) await self.ws_send(json.dumps({'type':'callAccepted', 'to':data['from']}))
async def pc_track(self, peerid, track): async def pc_track(self, peerid, track):