DEV Community

chetan rao
chetan rao

Posted on

WebRTC Help!!

I just started learning WebRTC and successfully created peer-to-peer videocall app , but then I wanted to connect more then 2 users So I searched and found I can achieve it through MESH architecture and I know there are better ways to do it like SFU and using any library but I just wanted to make it raw So I spend some time ( very much time ) and was able to understand how to do it , When a new User joins he get's the array of all the existing users and then he create a peer connection for every user and create offer for them and send ( signaling is handled by socket.io ) so every peer connection then get's Ans for there offer , and like this all of the users are now connected to the new user joined the room ,
Then there are two buttons one for sending my stream all the users ( it also enable to see my local stream to me) , and the 2nd button is for getting all the streams from other users , I see my stream but not the other user Streams , The problem is when i see chrome://wetrtc-internals after clicking sendStreams there it 'show negotiation needed and more stuff like added[0] and added[1] in the events , I am completely stuck , If anyone can please Help me it would be great help
here are link of my repo
frontend React - https://github.com/code-er7/Collab__-Frontend
backend - https://github.com/code-er7/Collab-signalling-backend

There is not good looking or a good frontend I am just trying to achieve the functionality of conference call here.
A little help would be great

Top comments (0)