4 ms·
For a low number of people in the room, WebRTC will work well in a fully P2P way. There's no need for a centralized server unless you have more than 10 users co
by littlestymaar 7y ago
For a low number of people in the room, WebRTC will work well in a fully P2P way. There's no need for a centralized server unless you have more than 10 users connected.
Also, in practice for a big number of users you won't need to encode the videos streams more than 10 times because most people have the same kind of characteristics (you'll have up to three level of network connectivity, and most of your users will have h264 support so you will have few codecs to support).
For instance, you could go for 720p h264, 480p h264, 240p h264, and audio only for people with too little bandwidth or no h264 support, and you'll be good for most use cases.
- eeZah7Ux 7y ago> WebRTC will work well in a fully P2P way. There's no need for a centralized server unless you have more than 10 users connected. I wish. With 10 users you have 102 - 10 = 90 different (unidirectional) data flows. Each of them can run into a different bottleneck where person X cannot hear Y and Y cannot hear W... And they cannot be monitored centrally (!). Compared to a centralized location where you would have 10 user-->server + 10 server-->user flows. On top of that, ISPs care about bandwidth between customers and large services e.g. AWS and don't care about ISP-to-ISP traffic.
- littlestymaar 7y ago> I wish. With 10 users you have 102 - 10 = 90 different (unidirectional) data flows. I don't understand your maths: in a p2p network with 10 clients, each clients ends up having 9(up) + 9(down) streams, with a centralized server, there is still 9 streams to download, but a single upload. Of course it requires 9 times less upload bandwith with a centralized server (or you get 9 times better quality for the same bandwidth), but as long as you don't have too much clients, p2p works fine. Keep in mind that for video chat, the biggest issue for QoS are latency and jitter. Using a centralized server won't help on those and if you have a good connection in terms of jitter and latency, you usually don't have throughput problems either. > And they cannot be monitored centrally (!). Why ? You definitely can push QoS metrics to a central serverif you want (but this server will have a much lower load to handle than if it had to centralize the video chat themselves) > On top of that, ISPs care about bandwidth between customers and large services e.g. AWS and don't care about ISP-to-ISP traffic. And AWS makes you pay a lot for every byte.