bugfix
This commit is contained in:
parent
6e151f9399
commit
8edfd26796
@ -22,13 +22,17 @@ from aav import MyAudioTrack, MyVideoTrack
|
|||||||
videos = ['./1.mp4', './2.mp4']
|
videos = ['./1.mp4', './2.mp4']
|
||||||
|
|
||||||
async def pc_get_local_candidates(pc, peer):
|
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:
|
if not peer.l_candidates:
|
||||||
peer.l_candidates = []
|
peer.l_candidates = []
|
||||||
for c in pc.__iceTransports.local_candidates():
|
for t in ts:
|
||||||
if c not in peer.l_candidates:
|
for c in t.local_candidates():
|
||||||
peer.l_candidates.append(c)
|
if c not in peer.l_candidates:
|
||||||
pc.emit('icecandidate', c)
|
peer.l_candidates.append(c)
|
||||||
|
pc.emit('icecandidate', c)
|
||||||
|
|
||||||
RTCPeerConnection.get_local_candidates = pc_get_local_candidates
|
RTCPeerConnection.get_local_candidates = pc_get_local_candidates
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user