Home  >  Article  >  Web Front-end  >  Web 端如何调用手机的相册和照相机?

Web 端如何调用手机的相册和照相机?

WBOY
WBOYOriginal
2016-06-07 08:44:593028browse

要做一个基于移动端的、无需安装app的Web应用。
需要能够实现和App一样的相册选择和拍照的功能。
已经测试了navigator.getUerMedia,在pc端可以,在手机端无效。
实现肯定是有人实现了,比如wenjuan.com手机登陆之后,填写问卷的时候可以选择照片或者拍照(虽然体验还不是太好)。
求教,用什么框架或者函数实现的?

回复内容:

iOS6 和 andorid4.1 以上 input 里面加个 capture 属性就可以调用拍照啊。 前面有人回答了,用input标签加capture属性。

但是话说回来,既然有人实现了,翻他们的代码不就知道怎么弄了吗? phonegap
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn