Question

To Connect 10 people in WebRTC Audio/Video Conference, it requires 90 calls in Mesh-Topology (Each Peer should connect with all other Peers in Conference). If number of participants are more the bandwidth consumption is more for each user. Is There any way to make WebRTC conference in Star-Topology(i.e. conferencing 10 people with 10 Calls) from browser client without any Hardware Like MCU?

My Requirement is Initiate Audio Conference 'n' people with n calls: Moderator initiated 3 calls from WebRTC browser client to different users(A,B,C) with 3 different peer connections. Now Moderator can able to here/speak with all three. Now Moderator Want to Conference all Three(A RemoteStream.AudioTracks to B&C, B Audio-Tracks to A&C, C Audio-Tracks to A&B). Without any new peer connections from A,B,C.

Is it Possible to mix audio tracks in Chrome/Firefox ......?

Was it helpful?

Solution 3

Am answering my old question (posted when i was an Amateur WebRTC Programmer).

The Solution is using WebAudio API, available in both Chrome & Firefox.

Here the great post by WebRTCHacks Mixing Audio in browser

It explained everything step by step.

OTHER TIPS

Yes, exactly what you described is possible in Firefox by using the WebAudio API. At the current time it is not possible in Chrome because it cannot create a MediaStreamAudioSourceNode from WebRTC streams (I hope this limitation will go away soon). Thus, the moderator's browser must be Firefox. The other peers can use other browsers.

This way you can set up a conference call with 10 peers, all of them only connecting to the moderator, thus using only 10 WebRTC connections.

What you have forgotten to mention is that you also have to mix in the moderator's audio for each peer.

With the WebAudio API you also could do some fancy things like per-peer audio visualization, muting, volume control, mixing in of audio files, etc.

WebRTC gives you the possibility to stream audio to somewhere. Whether that "somewhere" is a server or another client is up to you and does not depend on the protocol. For your scenario, what needs to be built, is a central box that implements moderator control and executes audio mixing.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top