microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
898 stars 277 forks source link

I want to do it so that the four of us can watch the HoloLens2 video. #817

Closed ghost closed 2 years ago

ghost commented 2 years ago

First of all, I'm sorry that I'm using a translator. I don't have any English skills.

The final appearance I think is that I want to send a HoloLens video/voice to four web browser users.

I succeeded in 1:1 communication, but when I try to connect from another web browser, the error below appears. Please tell me a solution or a solution.

20210908_180723

djee-ms commented 2 years ago

WebRTC is a peer-to-peer 1:1 technology. You cannot do that.

If you really want to connect 4 people, you need to setup a media server, and connect all 4 clients to it. See for example Janus (Disclaimer: I/Microsoft has no affiliation with Jannus; I just know some people had success with it. Other servers should work too, since WebRTC is standardized).

ghost commented 2 years ago

@djee-ms Thank you so much for your kind and quick response.

I looked it up and told WebRTC that the SFU method supports 1:N. I don't think this is possible either.

djee-ms commented 2 years ago

SFU and MTU require a media server. They're technologies that build on top of WebRTC; they're not part of the WebRTC standard itself.

ghost commented 2 years ago

@djee-ms image

The Peer to Peer (Mesh) method allows two to three people to exchange data without a server, but can this be applied?

djee-ms commented 2 years ago

The mesh method uses 1 peer connection per pair of peers. So here you have 3 peer connections in your example. You can use that, but that scales very poorly. However that doesn't require any media server, true.

ghost commented 2 years ago

Thank you so much for your kind reply.

It was a lot of reference and help.

I will end the issue.