任何人都可以通过html5在移动safari(ios5)访问摄像头? [英] Can anyone access to the camera by html5 in the mobile safari (ios5)?

查看:1053
本文介绍了任何人都可以通过html5在移动safari(ios5)访问摄像头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以看到opera软件让api帮助开发者从网页访问相机。

As we can see opera software make the api to help developer to access to the camera from the web page.

我们可以在ios5的移动Safari上使用吗?

Can we do it on mobile safari in ios5 ?

此外,有些家伙表示他们可以在Android设备上执行。

Besides,some guys said that they can do it on a android device.Is it really?

非常感谢。

推荐答案

您可以使用像phonegap这样的库来访问硬件。这只能在phonegap和您的html页面嵌入应用程序时才能完成。
http://docs.phonegap.com/en /1.1.0/phonegap_camera_camera.md.html#Camera

You can access to the hardware by using a library like phonegap. This can be done only if phonegap and your html page are embedded in an app. http://docs.phonegap.com/en/1.1.0/phonegap_camera_camera.md.html#Camera

网站或从真实网站加载的任何JavaScript代码将不允许使用用于安全目的的手机相机。

A website, or any javascript code loaded from a real website won't be allowed to use a phone camera for security purposes.

这篇关于任何人都可以通过html5在移动safari(ios5)访问摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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