如何从网络应用程序访问手机的相机? [英] How to access a mobile's camera from a web app?

查看:18
本文介绍了如何从网络应用程序访问手机的相机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的移动网络应用程序(不是本机应用程序)中,我想拍照并上传它,但我不想使用 Adob​​e 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 可以获取相机、摄像机和音频等值.

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屋!

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