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 278 forks source link

Problem to set up stream with "SceneViewSource" #777

Closed SilverLive closed 3 years ago

SilverLive commented 3 years ago

I am trying to make the LocalOnlySignaler component work. My goal is simply to send video streams from one peer to another to test a new CustomVideoSource that reads from SharedMemory (so far to get LocalOnlySignaler work I still use SceneVideoSource which is beeing captured and displayed correctly). Unfortunately I can´t get the two peers connected. To start the connection, I listen to the OnInitialized-Events of both peers. After both peers are Initialized, I call the StartConnection-Method in LocalOnlySignaler. In the same Time, I execute WaitForConnection as a Coroutine with a timeout of 10000. While debugging, I can see that the offer is sent and an answer SDP is sent back to peer one, but there is no Video stream beeing received. I have no idea what is missing. Please give me a hint.

SilverLive commented 3 years ago

OK, I was able to make the LocalOnlySignaler work, the only thing that is still not working is the transmission of the SceneViewSource. While the WebCamSource is beeing transmitted as it should, the SceneViewSource isn´t.