问题描述
我们尝试使用 AR Foundation 在 AR 中使用 Agora 视频显示,但注意到以下内容:在 AR 客户端中,我们确实看到了标准客户端的视频(因此我们看到 AR 中的视频四处飘动).但是,我们在标准客户端中看不到来自 AR 客户端的视频流.是不是 AR 客户端使用后置摄像头进行 AR 视图,不能同时串流前置摄像头?如果是这样,这也可能吗?如果没有,我们如何才能做到这一点?
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?
推荐答案
您的观察是正确的.这些都是硬件和软件限制.只有少数最新的移动设备支持同时从前置和后置摄像头拍摄.你可能想用谷歌搜索这些设备.在软件支持方面,Agora Video SDK 目前只能处理一个视频流输出.即使您找到了在 Unity 中打开两个摄像头的方法,SDK 也无法将它们作为单独的流发送.在这种情况下,您需要将屏幕组合在一起作为一个流发送.
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.
这篇关于我们可以使用 Unity AR Foundation 和同时使用后置和前置摄像头的 Agora 视频吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!