实现移动端H5页面调用摄像头

<h3>image图片</h3>
<input type="file" accept="image/*" capture="camera">

<h3>image图片 – 多选</h3>
<input type="file" accept="image/*" multiple>

<h3>image图片 - 前置摄像头调用</h3>
<input type="file" accept="image/*" capture="user">

<h3>video视频</h3>
<input type="file" accept="video/*" capture="camcorder">

<h3>audio音频</h3>
<input type="file" accept="audio/*" capture="microphone">

调用的是手机的默认相机

猜你喜欢

转载自www.cnblogs.com/Chestnut-LYN/p/10593661.html