如何同时捕获银河S4正面和背面摄像头?银河、背面、摄像头

2023-09-12 23:05:33 作者:春风得意马蹄疾

正如你可能知道三星的银河S4 已经在同一时间捕捉正面和背面摄像头的能力。现在我需要在我的应用程序捕获他们两个。我应该下载的东西? 我试图打开他们两人,但没有成功!我使用API​​级17。

As you may know Samsung Galaxy s4 has the capability to capture both front and back cameras at the same time. Now I need to capture both of them in my application. Should I download something? I tried to open both of them but It wasn't successful! I'm using API level 17.

推荐答案

据我所知,这是它支持两种工作的摄像机唯一的电话。这是说,你的应用程序可以适用于这款手机只能通过为止。

As far as I know, this is the only phone which supports both the cameras working. This being said, your application may be applicable to this phone only by far.

很遗憾,我不知道,到目前为止,可工作的事情了释放任何API的,相信我,我把互联网倒挂。三星声称,在S4,你可以在同一时间捕捉来自摄像机的视频,但他们从来没有解释(或至少我没看出来)这是什么同一时间的意思。这可能是一些在硬件,这是由三星的应用程序只控制或它只能通过软件来实现,这是由相同的应用程序的控制 - 谁知道

Unfortunatelly I don't know of any API which is released so far that can work the things out and believe me I turned the Internet upside down. Samsung claims that on the S4 you can capture videos from both the cameras at the same time, but they never explained (or at least I didn't see it) what this "same time" means. This could be something in the hardware, which is controlled only by the Samsung's application or it can be achieved only by software, which is controlled by the same application - who knows.

我读过很多这两个摄像头怎么能付诸于其他手机一起工作职位(通过切换摄像机上的时间间隔,但这些都是昂贵的操作,这将很可能无法正常工作)。其他的事我能想到的(我没有看到一个建议的任何地方)是启动这两款相机在单独的进程(使用或不使用的AsyncTask类),并把他们的工作,同时切实,但我没' t检验,这样的解决方案(你可以试试这个,如果你喜欢,我感兴趣的是结果实际上)。

I've read a lot of posts of how those two cameras can be put to work together on the other phones (by switching the cameras on an interval, but those are expensive operations and this will probably not work). Other thing I can think of (which I didn't see anywhere as a suggestion) is to start both cameras in separate processes (with or without using the AsyncTask class) and put them to work at the same time practically, but I didn't test such a solution (you can try this one if you like, I'm interested in the result actually).

要总结的东西:到目前为止 - 没有运气银河S4的API,但也许有将是技术和/或实现这一目标的途径的泄漏

To sum the things up: So far - no luck with Galaxy S4 API, but maybe there are going to be some leaks of the technology and/or a way of achieving this.

 
精彩推荐