peers / peerjs

Simple peer-to-peer with WebRTC.
https://peerjs.com
MIT License
12.48k stars 1.43k forks source link

Create conference #902

Closed A2DNEW closed 2 years ago

A2DNEW commented 2 years ago

I use peerjs for video call My conference work for 5 users But after add another user to conference ( up 10 users ), video calls are hanging and bad rendering! How I can fix it for 10 users? My server: 8gig ram cpu 2vCore

newmediacrew commented 2 years ago

Hello,

The problem is not the server. But the individual connection used. If you have a conference with 10 people. Someone must have sufficient bandwidth to actually broadcast the video 10 times to each other client. The server is only a broker to tell what connection should join what video call. For example a 2 core with 2 gig's of ram should be enough to start a video conversation with 10 people in one conference.

Of you are looking for some scalability, as I am at the moment. Project janus looks promising. https://janus.conf.meetecho.com

A2DNEW commented 2 years ago

Hello,

The problem is not the server. But the individual connection used. If you have a conference with 10 people. Someone must have sufficient bandwidth to actually broadcast the video 10 times to each other client. The server is only a broker to tell what connection should join what video call. For example a 2 core with 2 gig's of ram should be enough to start a video conversation with 10 people in one conference.

Of you are looking for some scalability, as I am at the moment. Project janus looks promising. https://janus.conf.meetecho.com

Thank you So, Ho can I fix it? I want to create video conference like google meet for 10 users.

afrokick commented 2 years ago

You should adopt you quality/bandwidth with sdp message. Take a look at this https://github.com/peers/peerjs/issues/901#issuecomment-1046230997