javascript - Help, how to call the camera to take pictures in html5? ?
ringa_lee
ringa_lee 2017-05-16 13:38:12
0
4
560

The project has a requirement, which requires calling the user's camera to take photos and upload documents. Can this be achieved? Are there any cases to share?

capture=”camera” attribute Only the browser in the iPhone can recognize the camera. Some built-in browsers in Android series phones can, but most of them cannot.

ringa_lee
ringa_lee

ringa_lee

reply all(4)
我想大声告诉你

http://www.html5plus.org/doc/...

PHPzhong

input file image/*

左手右手慢动作

Uploading is very simple. Please note that the function of dropping the photo album under Android requires native cooperation. Turn on the function permission of dropping the camera. It is very simple on h5. See Liezi for details
https://my.oschina.net/zyxchu...

巴扎黑
<input type="file" accept="image/*">
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template