Using webRTC for broadcasting video+audio stream to large audience

269 views
Skip to first unread message

Jagat Jain

unread,
Mar 26, 2022, 1:35:04 PM3/26/22
to discuss-webrtc
Hi All

I have the following use case:-

1. One on one video conversation between 2 users over webRTC protocols. There would be multiple such conversations happening at the same moment
2. The above video conversations being broadcasted to large number of viewers (approx. 200 concurrent viewers / instance of broadcast and an acceptable latency of upto 10 seconds)

The objective with respect to 2 is to minimise on costing and wise of implementation. To meet these objectives, I have 2 options:-

1. Use of webRTC
2. User of CDN streaming

Which option should I go ahead with?

Tsahi Levent-Levi

unread,
Mar 26, 2022, 2:56:23 PM3/26/22
to discuss...@googlegroups.com
Jagat,

For the two participants to have a conversation you need to use WebRTC if you want simplicity and support from a browser.
For the viewers you can use either WebRTC or something else. Mixing the two sources to use something else will be a wee bit of a headache (not much, but there).
For 200 viewers I am not sure if I'd go for the mixing approach as it brings with it the latency mentioned.

Easiest would be to use the likes of Agora, Daily, Dolby, Twilio, Vonage, ...  - all will easily support you at this scale. It will also simplify your development costs.
Building on your own would be a bit more challenging in either of the approaches (full WebRTC or WebRTC+something else).

--
Regards,
Tsahi Levent-Levi
Analyst & Consultant

Want to get more of your WebRTC sessions effectively connected? Enroll to my free video course: http://bit.ly/32Y3qZK


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/212d6245-2426-46b8-82b1-297b4b2cabd1n%40googlegroups.com.


--
Regards,
Tsahi Levent-Levi
Analyst & Consultant

Want to get more of your WebRTC sessions effectively connected? Enroll to my free video course: http://bit.ly/32Y3qZK

Lorenzo Miniero

unread,
Mar 27, 2022, 7:38:13 AM3/27/22
to discuss-webrtc
I made a presentation at FOSDEM recently that describes how you can use WebRTC for the purpose. While the main focus is on ingestion (WHIP) I cover distribution too:

That said, an acceptable latency of 10s means WebRTC is probably overkill for you, and you can probably limit WebRTC to the conversation, and use "traditional" broadcasting for the rest.

L.

Jagat Jain

unread,
Mar 27, 2022, 10:17:29 PM3/27/22
to discuss-webrtc
Hi Lorenzo, Thanks for the revert. The presentations are really detailed and very insightful. I along with my team are working on a platform for connecting consultants with users over video conferencing. We are still at an early stage of developing our understanding on the conferencing part. Will it be possible for you to spare a 30 mins slot to our entire team so that we can get a broad understanding on webRTC and broadcasting it? The slot can be as per your convenience and I shall share the joining link with you. Thanks. 

Jagat Jain

unread,
Mar 28, 2022, 10:18:28 PM3/28/22
to discuss-webrtc
I am trying to test out a one to many set up over webRTC. Being an absolute newbie, I would really appreciate if someone can share source code files pertaining to this use case which I can go and implement on my serve and test out. Thanks. 

On Sunday, 27 March 2022 at 17:08:13 UTC+5:30 Lorenzo Miniero wrote:

jayesh jain

unread,
Mar 29, 2022, 2:59:28 AM3/29/22
to discuss-webrtc
Hi 
I am working on an html front end webapp and planning to use php for logic , will the webrtc work with php backend or logic part . 

On Sunday, 27 March 2022 at 17:08:13 UTC+5:30 Lorenzo Miniero wrote:

Hamit Demir

unread,
Mar 29, 2022, 9:37:49 AM3/29/22
to discuss-webrtc
Hi Everyone,
I just saw your post and wanted to invite you guys to our webinar. Because it might interest you.
We will scale the WebRTC stream to 25k viewers with the live demonstration.
If you would like to participate, you are all welcome.

Here is our agenda:
  • Issues with WebRTC scaling

  • Solutions to WebRTC scaling

  • Step by step scaling to 25K viewers

  • Test scenarios

  • Live demonstration



Reply all
Reply to author
Forward
0 new messages