如何拍照带前后摄像头同时? [英] How to take photo with front and rear camera simultaneously?

查看:200
本文介绍了如何拍照带前后摄像头同时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让一个应用程序使用前和后置摄像头于一体的画面,需要的图片。

I'm trying to make an app that takes a picture using the front and the rear camera in one picture.

这是有点儿它会怎样看。

This is kinda how it would look.

我读过 http://developer.android.com/reference/安卓/硬件/ Camera.html 并搜查,实在找不到关于这个问题的任何东西,但我知道我看到了其他应用程序的应用程序商店这样的。

I've read http://developer.android.com/reference/android/hardware/Camera.html and searched and really couldn't find anything on the subject but I know I saw on the app store of other apps like this.

推荐答案

晴这取决于设备的硬件和大部分设备现在不允许同时使用的两个照相机。即使有些设备将能够使用这两款相机,如果你想上尽可能多的设备上运行完美尽可能应用(这是你想要的),你不应该实施该解决方案。谷歌表示:

Mostly it depends on the hardware of the device and most of the devices now do not allow use of both cameras simultaneously. Even if some device will be able to use both cameras, if you want to make application that runs flawlessly on as much devices as possible (and this is what you want) you should not implement this solution. Google says:

为了您的应用程序能与更多的设备兼容,
  不应该让有关设备的摄像头规格假设

In order for your application to be compatible with more devices, you should not make assumptions about the device camera specifications

你可以做什么,这取决于你正在写是与前置摄像头,第二次与相机背面定期拍照一旦应用程序。

What you can do, and it depends on the application you are writing is to periodically take pictures once with the front camera and the second time with the back camera.

这篇关于如何拍照带前后摄像头同时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆