Hi,
I'm a new one in webRtc and I'm trying some samples to get familiar + understand it
I call 2 tabs peer connections are pc1, pc2. Then when I start call in tab 1 first, then in tab 2, I debugged and see tab 1 got 2 messages with type 'candidate', tab 2 got 3 messages with type 'candidate', the last one message of 2 tabs has candidate property null.
So it means:
- pc1 got icecandidate event 3 times (sent 3 message type candidate to tab 2)
- pc2 got icecandidate event 2 times (sent 2 message type candidate to tab 1)
But icecandidate event is emitted only we call setLocalDescription on peer connection so I thought it only happens 1 time.
Can someone help me to explain why I got too many messages with type 'candidate' like this?