I have a problem with WebRTC group chatting. [I have achived this on my code]
client-1
create's offerSDP forclient-2
client-2
accepts the offerSDP and replay answerSDP to theclient-1
(the creator)client-1
accept and set it as remoteDescription. Now video chat happening.
fine,
Now client-3
comes in.
In my code client-3
receives client-1's
offerSDP and emit's answerSDP to all the client's present in the server.
- Now Both
client-1
andclient-2
will get the answerSDP fromclient-3
and both will receviesclient-3's
video.
Problem:
client-1
has [localvideo, client-2_video, client-3_video]client-2
has [localvideo, client-1_video, client-3_video]client-3
has [localvideo, client-1_video]. Here this client not knowing about client-2
why? what i have to do here? Helo me please.