bugfix
This commit is contained in:
parent
5dd2d6283e
commit
c5e40621c8
@ -83,16 +83,18 @@ class RTCLLM:
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
async def on_icecandidate(self, pc, to, candidate):
|
async def on_icecandidate(self, pc, to, candidate):
|
||||||
print('******************** on_icecandidate()', self, pc, candidate, candidate.__class__.__name__)
|
|
||||||
if candidate:
|
if candidate:
|
||||||
|
candi = {
|
||||||
|
'candidate':'candidate:' + candidate.to_sdp(),
|
||||||
|
'sdpMid':candidate.sdpMid,
|
||||||
|
'type': candidate.type
|
||||||
|
}
|
||||||
|
print('***********on_icecandidate()', candi)
|
||||||
await self.ws_send(json.dumps({
|
await self.ws_send(json.dumps({
|
||||||
"type":"iceCandidate",
|
"type":"iceCandidate",
|
||||||
"to":to,
|
"to":to,
|
||||||
"candidate":{
|
"candidate":candi
|
||||||
'candidate':candidate.to_sdp(),
|
})
|
||||||
'sdpMid':candidate.sdpMid,
|
|
||||||
'type': candidate.type}
|
|
||||||
}))
|
|
||||||
|
|
||||||
async def save_onlineList(self, data):
|
async def save_onlineList(self, data):
|
||||||
print(f'{self}, {type(self)}')
|
print(f'{self}, {type(self)}')
|
||||||
|
Loading…
Reference in New Issue
Block a user