Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
223 views
in Technique[技术] by (71.8m points)

unity3d - Can we use Agora video using Unity AR Foundation with simultaniously using back and front camera

We tried using Agora video display in AR using AR Foundation, but noticed the following: in the AR Client we do see the video of a Standard client (so we see the video in AR floating around). However, we dont see the video stream from the AR Client in the Standard client. Could it be that the AR Client is using the back camera for the AR view and is not able to stream the front camera at the same time? If so, would this be possible too? If not, how could we make this work?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

your observation is correct. These are both hardware and software limitations. Only few of the latest mobile devices support capture from both front and back cameras at the same time. You may want to google for these devices. As for the software support, Agora Video SDK currently can handle one video stream output only. Even you found a way to turn on both camera in Unity, the SDK won't be able to send them as separate streams. In that case, you will need to combine the screens together as one stream to send.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...