如何在Android中同时使用两个摄像头进行录制?
Android 中是否可以使用前置摄像头和后置摄像头同时录制两个视频。
在我读到的一篇文章中,他们提到它需要双处理器设备。
如果有人有任何建议/指导,请告诉我。
谢谢
Is it possible to record two videos simultaneously using the front and back camera in Android.
In an article I read they mention it requires a dual processor device.
Please let me know if anyone has any suggestions/guidance.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是可能的。但仅限于某些手机。
我发现 HTC One m8、OnePlus One 和 Mototola Nexus 6 都具备此功能。其余的我还不知道。除了通过应用程序进行测试并查看它是否崩溃之外,我没有找到其他方法来确定他们是否支持此功能。
不过,您必须为前面和后面创建一个单独的相机对象(只需迭代可用相机的数组)。
-编辑-
我至少可以确认它适用于(某些?也许不是全部)配备 Snapdragon 801 芯片组及以上芯片组的手机。
Yes, this is possible. But only on certain phones.
I have found the HTC One m8, the Oneplus One and the Mototola Nexus 6 capable of this. For the rest I don't know, yet. I have found no other way to find if they do or don't support this than through testing with an app and to see if it crashes or not.
You have to create a seperate camera object for the front and the rear, though (just iterate through the array of available camera's).
-edit-
It seems to be something I can at least confirm works for (certain? Maybe not all) phone which have the Snapdragon 801 chipset and upwards.