如何通过网络应用访问手机的相机? [英] How to access a mobile's camera from a web app?
本文介绍了如何通过网络应用访问手机的相机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的网络应用程序(非原生应用程序)的手机,我想拍一张照片和上传它,但我不想使用Adobe Flash。
In my web app (not native app) for mobiles, I want to take a photo and upload it, but I don't want to use Adobe Flash. Is there any way to do this?
推荐答案
在iPhone iOS6和Android ICS以上,HTML5有以下标签,从您的设备拍摄照片:
In iPhone iOS6 and from Android ICS onwards, HTML5 has the following tag which allows you to take pictures from your device:
<input type="file" accept="image/*" capture="camera">
捕获
可以取摄像机,摄像机和音频。
Capture
can take values like camera, camcorder and audio.
我认为这个标签肯定不会在iOS5中工作,不确定。
I think this tag will definitely not work in iOS5, not sure about it.
这篇关于如何通过网络应用访问手机的相机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文