peer.on('signal') is calling again when I addTrack(ex.screenShare track) - simple-peer

139 Views Asked by At

peer.on('signal') is calling again when I addTrack(ex.screenShare track) when a video call is going on then another peer connection is establishing with this error

enter image description here

But the replaceTrack is working fine.I am not able to figure out Can u please help me in solving these problem. Thanks in advance

1

There are 1 best solutions below

0
On

From the official documentation the syntax is peer.addTrack(track, stream)