This commit is contained in:
yumoqing 2024-09-02 10:59:48 +08:00
parent 7168f46766
commit d2660f268b

View File

@ -105,7 +105,7 @@ class RTCLLM:
pc.on("connectionstatechange", partial(self.pc_connectionState_changed, data['from'].id)) pc.on("connectionstatechange", partial(self.pc_connectionState_changed, data['from'].id))
pc.on('track', partial(self.pc_track, data['from'].id)) pc.on('track', partial(self.pc_track, data['from'].id))
pc.on('icecandidate', partial(self.on_icecandidate, pc)) pc.on('icecandidate', partial(self.on_icecandidate, pc))
player = MediaPlayer('/Users/ymq/v/1.mp4') player = MediaPlayer('./1.mp4')
if player: if player:
pc.addTrack(player.audio) pc.addTrack(player.audio)
pc.addTrack(player.video) pc.addTrack(player.video)