MixedReality-WebRTC icon indicating copy to clipboard operation
MixedReality-WebRTC copied to clipboard

"cannot create offer with uninitialized peer"

Open Matteo-0 opened this issue 3 years ago • 1 comments

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.

Matteo-0 avatar Jul 15 '21 11:07 Matteo-0

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.

spacecheeserocks avatar Jul 17 '21 07:07 spacecheeserocks