Closed alxfigueiredo closed 3 years ago
I am also very curious on this.
WebRTC PeerConnections are all 1-to-1 only, but you can create more PeerConnections!
This works well for groups of 3 or 4, but that's about the reasonable limit. Larger groups begin to fail for many reasons (limits on simultaneous hardware decodes, and just the burden of sending/receiving so much data to different peers).
To set this up, it's the same idea as a 1-to-1 call, you just need to make another PeerConnection.
You must use the same AudioSource and VideoSource for all PeerConnections - otherwise it tries to capture the webcam twice and will fail.
Depending on your signalling solution, you will also need to make sure that you can reliably signal these connections multi-way. The Node-DSS sample wouldn't work out-of-the-box because it would mix together offers from 2 different peers. You could however just use a different LocalID for each peerconnection (e.g. PC1 <-> Holo1, PC2 <-> Android1 etc).
Hello @spacecheeserocks,
Thank you for your valuable post! Your advice is very well received. Indeed, changing the IDs as you mentioned, made my calls work. I am indeed making a prototype, so it fits me well for now. For future development, I'll note your valuable information. Thanks a lot!
Hello to all. I am trying to create a communication between a PC, an Android Smartphone and a Hololens 2 using MRTK-WebRTC on Unity. These three devices need to communicate simultaneously using their Camera and Microphone. Unfortunately I understand that MRTK-WebRTC only allows a 1 to 1 connection (Tell me if I'm wrong and if can do it).
Does anyone know how I can establish such a communication please?