使用前置摄像头 (Xamarin.Android) [英] Working with front camera (Xamarin.Android)

查看:49
本文介绍了使用前置摄像头 (Xamarin.Android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了这个食谱,并且运行良好.但是,我有几个问题:

I have gone through this recipe and it is working fine. However, I have a couple of questions:

1) 它告诉我如何使用主摄像头,但我想使用前置摄像头,我该怎么做?

1) It tells me how to work with the main camera but I am looking to work with the front camera, how can I do that?

2) 我必须为 10.1 平板电脑开发一个应用程序,我希望当我点击激活相机"按钮时,前置相机会激活,而不是显示相机在完整视图中看到的内容,我应该能够在该屏幕上的定义框中显示它.换句话说,我想要一个有一个按钮和一个框的屏幕,我需要在其中显示相机看到的内容.我相信我见过这样的应用程序,所以我假设它是可行的.

2) I have to develop an app for 10.1 tablet and I was hoping that when I click on the 'Activate Camera' button, the front camera activates and rather than showing what the camera sees in the complete view, I should be able to show it in a defined box on that screen. In other words, I want to have a screen that has a button and a box in which I need to show what the camera sees. I believe I have seen an app do like this so I am assuming that it is doable.

在这些问题上的任何帮助将不胜感激.

Any help in these matters will be highly appreciated.

谢谢,艾哈迈德

推荐答案

尝试 this样本.也许可以通过某种方式设置 Camera 对象以使用前置摄像头.

Try this sample. Maybe it is possible to setup Camera object somehow to use frontcam.

这篇关于使用前置摄像头 (Xamarin.Android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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