Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebRTC large scale broadcasting [closed]

I am new to webrtc. I followed a tutorial from http://www.html5rocks.com/en/tutorials/webrtc/basics/#toc-security on webrtc and i was able to do some chatting.

If I want to broadcast to more number of users say like 1000 users or more, then what are the things I need to consider while designing such an application?

I googled a bit but all i got was implementations of webrtc and some questions like mine. But haven't got any concrete answer till now.

like image 480
karthick Avatar asked Nov 02 '22 19:11

karthick


1 Answers

The answer given is slightly incorrect. If we talk about scaling, the given link does nothing on it. If you go to "broadcasting demo" https://www.webrtc-experiment.com/RTCMultiConnection/video-broadcasting.html, and test, you will see the broadcaster does not send a single video stream, but N streams, where N is the amount of "listeners" or "broadcast attendees". So, the broadcaster will soon hit a outgoing connection bottleneck. For example, a single outgoing stream requires 40KB/s, so it is ~40MB/s for 1000 users, which is... unacceptable I guess.

The only way to build a scalable app is to use a server side solution. It doesn't matter if there will be a small delay between broadcaster and listeners, it is not a live conversation, same as television.

like image 99
igorpavlov Avatar answered Nov 08 '22 05:11

igorpavlov