在访问Android的正面和背面摄像头在同一时间 [英] Accessing Front and Back Camera in Android at the same time
问题描述
欲同时访问的正面和背面相机。这可能吗?从我的测试,这可能无法做到的。它崩溃如果一个应用程序已经访问后置摄像头和其他应用程序试图访问的前置摄像头。
I want to access the front and back camera at the same time. Is this possible? From what I tested, this could not be done. It crashes if an application is already accessing the back camera and another app is trying to access the front camera.
我发现几个previous张贴在这里,但没有回答这个:
I found few previous posting here but there is no answer to this:
<一个href=\"http://stackoverflow.com/questions/7835894/can-we-access-at-a-time-camera-in-multiple-application\">Can我们访问在多个应用程序时相机?
<一个href=\"http://stackoverflow.com/questions/6676859/open-android-front-camera-and-back-camera-at-the-same-time\">Open Android的前置摄像头和后置摄像头,同时
但我不明白的是,为什么会出现这样的限制?
But what I don't understand is why is there such a limitation?
是不是正面和背面摄像头是两个不同的硬件?
Isn't front and back cameras are two different pieces of hardware?
或者可以这样做,我错了?
Or can this be done and am I wrong?
在此先感谢,
Perumal
Thanks In Advance, Perumal
推荐答案
从文档:
您的应用程序应该只有一个Camera对象同时有效。
Your application should only have one Camera object active at a time.
的相机模块被切换到前部或朝向背照相机。没有设计在同一时间推出他们两个。 HTC已经确认这 这里 。对不起。
The camera module is switched to either the front or back-facing camera. There is no design to launch both of them at the same time. HTC has confirmed this here. Sorry.
这篇关于在访问Android的正面和背面摄像头在同一时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!