Html 通过 iPhone Web App 访问相机

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3220423/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 03:44:04  来源:igfitidea点击:

Access Camera through iPhone Web App

iphonehtmlcamera

提问by felixlaumon

I understand that it is not quite possible to access webcam through HTML. So how about on the iPhone? Is it possible?

我知道不太可能通过 HTML 访问网络摄像头。那么在 iPhone 上呢?是否可以?

采纳答案by Joel Clark

Take a look at: http://code.google.com/p/iphone-photo-picker/

看看:http: //code.google.com/p/iphone-photo-picker/

This was done by the NextStop guys, and is open sourced under MIT license. It basically uses an URL scheme to allow you to redirect a web user to a tiny native app long enough to take the picture, and then back to your web app to continue their experience.

这是由 NextStop 人员完成的,并在 MIT 许可下开源。它基本上使用 URL 方案,允许您将 Web 用户重定向到一个足够长的小型本机应用程序以拍摄照片,然后返回到您的 Web 应用程序以继续他们的体验。

I haven't used it yet, but I saw them demo it in a webcast and plan on using it myself when we get our mobile site done enough to incorporate it.

我还没有使用它,但我看到他们在网络广播中演示了它,并计划在我们的移动网站做得足够多以合并它时自己使用它。

回答by Shay B.

Starting with iOS6, You are able to access the Camera, and Photos using the<input type="file" />input

从 iOS6 开始,您可以使用<input type="file" />输入访问相机和照片

回答by Jason

No. You can access the phone through the native API, but not via a web app.

不可以。您可以通过本机 API 访问手机,但不能通过网络应用程序访问。