This commit is contained in:
yumoqing 2024-09-04 15:14:37 +08:00
parent 5dd2d6283e
commit c5e40621c8

View File

@ -83,16 +83,18 @@ class RTCLLM:
}))
async def on_icecandidate(self, pc, to, candidate):
print('******************** on_icecandidate()', self, pc, candidate, candidate.__class__.__name__)
if candidate:
candi = {
'candidate':'candidate:' + candidate.to_sdp(),
'sdpMid':candidate.sdpMid,
'type': candidate.type
}
print('***********on_icecandidate()', candi)
await self.ws_send(json.dumps({
"type":"iceCandidate",
"to":to,
"candidate":{
'candidate':candidate.to_sdp(),
'sdpMid':candidate.sdpMid,
'type': candidate.type}
}))
"candidate":candi
})
async def save_onlineList(self, data):
print(f'{self}, {type(self)}')