前置摄像头的LG擎天柱2X速度 [英] Front-facing camera on LG Optimus 2X Speed
本文介绍了前置摄像头的LG擎天柱2X速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经得到了<一个href=\"http://stackoverflow.com/questions/4241292/how-to-use-front-facing-camera-on-samsung-galaxy-s\">front-facing相机在三星Galaxy S 的工作,但下面的技术不上LG擎天柱2X工作速度:
I've gotten the front-facing camera to work on a Samsung Galaxy S, but the following technique doesn't work on an LG Optimus 2X Speed:
Camera mCamera = Camera.open();
Camera.Parameters parameters = mCamera.getParameters();
parameters.set("camera-id", 2);
mCamera.setParameters(parameters);
以上code仍然只能从朝后摄像头显示的视频。摄像头应用程序支持切换摄像机,它甚至配备了一个镜报的应用程序捆绑在一起。
The above code still only displays video from the back-facing camera. The Camera app supports switching cameras, and it even comes bundled with a "Mirror" app.
推荐答案
我发现使用的所有参数
Camera.Parameters parameters = mCamera.getParameters();
Log.d("camera", parameters.flatten());
这透露了一个名为相机传感器
字段。当然不够,我把它通过指定工作
Which revealed a field called camera-sensor
. Surely enough, I got it working by specifying
parameters.set("camera-sensor", 1);
mCamera.setParameters(parameters);
这篇关于前置摄像头的LG擎天柱2X速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文