0

如何使用 Android 手机和 iPhone 上我网站上的按钮从浏览器访问设备摄像头。如果网站是用 PHP 制作的,我不确定它是否可能如果有人对此有解决方案,请帮助我。

谢谢

4

1 回答 1

2

It's rather done through JavaScript, but it's unfortunately not possible for a website to access the camera on a mobile device right now, but things may change soon if the Android/iOS browsers start to provide support for the HTML5 getUserMedia API.

You may however be able to use a file picker that asks the user to take a photo or select from the gallery (at least on iOS). See https://web.archive.org/web/20130520232826/http://www.aaronlumsden.com/articles/ios6-the-benefits-for-html5-web-app-development/ for more information.

于 2013-05-14T18:08:10.707 回答