bugfix
This commit is contained in:
parent
6e151f9399
commit
8edfd26796
@ -22,10 +22,14 @@ from aav import MyAudioTrack, MyVideoTrack
|
||||
videos = ['./1.mp4', './2.mp4']
|
||||
|
||||
async def pc_get_local_candidates(pc, peer):
|
||||
await pc.__gather()
|
||||
ts = pc.getTransceivers()
|
||||
coros = map(lambda t: t.iceGatherer.gather(), ts)
|
||||
await asyncio.gather(*coros)
|
||||
|
||||
if not peer.l_candidates:
|
||||
peer.l_candidates = []
|
||||
for c in pc.__iceTransports.local_candidates():
|
||||
for t in ts:
|
||||
for c in t.local_candidates():
|
||||
if c not in peer.l_candidates:
|
||||
peer.l_candidates.append(c)
|
||||
pc.emit('icecandidate', c)
|
||||
|
Loading…
Reference in New Issue
Block a user