5
votes

Im find https://github.com/cloudwebrtc/flutter-webrtc for use webrtc in flutter. But in repository, the sample is only peer to peer with 2 devices. I have build app for my customer for video call with many people. It's possible use this package for build video conference (2+) in flutter?

3
oh, you use webrtc mesh or what is solution? I have research but it to be quite complex. - KhacNha
@ThiagoFreitas, How did you solved that? - Al Mamun
Yes, you can conference call with the help of that demo. But for the conference call, you need to do customization on it. - Hardik1344

3 Answers

1
votes

Yes, you should be able to establish a video call with many people using WebRTC and this package.

One approach would be to create a new RTCPeerConnection for every new peer in your room. Check out this example, it does exactly that.

However, since WebRTC is intended for peer-to-peer, this solution is not scalable at all, because you are going to be creating new peer connections exponentially. With ~6 people, the quality of your call will already be terrible. If your intention is to have a conference room, you should really look into using a Selective Forwarding Unit (SFU), if you plan to be scalable at all.

Checkout Janus VideoRoom plugin for an open-source SFU implementation, just be aware that it's a bit cumbersome to set it up.

-2
votes

For room video call, or live stream... you have to use a Media server to make it, webrtc just allow 2 peer, need a Media server to be an intermediaries

-7
votes

unfortunately, you cannot use it for 2+ communication, because the main idea of webRTC is connect two sides through P2P.