1 year ago

#378500

test-img

mohammedshetaya

No Camera Rendering in Unity

I am trying to send a AR camera stream to a web browser using Unity.Webrtc. First I initiate the signaling between the unity peer and the browser peer and I try to capture the ar camera of the ARFoundtion library using the following code:

var track = arCamera.CaptureStreamTrack(1280, 720, 0);
localConnection.AddTrack(track);

Where localConnection is an RTCPeerConnection and in the browser I recieve the following mediastream Object:

[0:MediaStream{id : "b0ca5dca-0fd0-4bf6-81d4-1bd60945edc5" , active : true , onactive: null , onaddtrack: null}]

Then after adding this MediaStream to srcObj of video element it does not work and I get No Camera Rendering error in unity

Unity Scene

c#

unity-game-engine

webrtc

augmented-reality

0 Answers

Your Answer

Accepted video resources