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
913 stars 283 forks source link

"cannot create offer with uninitialized peer" #788

Open Matteo-0 opened 3 years ago

Matteo-0 commented 3 years ago

Hello, I am trying to send images acquired by my local camera in unity to the hololens 2. The problem is that I get the folllowing error: "cannot create offer with uninitialized peer"

I do not know how to solve it, hope anyone can help me.

spacecheeserocks commented 3 years ago

You probably need to wait for the PeerConnection object to initialize first.

Double-check the tutorial/docs for more details, but generally, you must wait for the PeerConnection.OnInitialized event to fire before creating offer etc.