h5移动端调用相机摄像机录音机获取
哪有专治白癫疯的 http://pf.39.net/bdfyy/
上一篇文章: 锦屏县河口乡抗疫战线上行走的ldqu 下一篇文章: 怀旧经典丨10首经典老歌带你回到那个扛着
三个属性:
accept-规定可提交的文件类型。
capture-系统所捕获的默认设备。camera(照相机),camcorder(摄像机),microphone(录音)
mutiple-支持多选。当支持多选时,multiple优先级高于capture(安卓系统多选无效)
几种写法:
1.inputtype="file"accept="image/*"capture="camera"!--调用相机--
2.inputtype="file"accept="video/*"capture="camcorder"!--调用摄像机--
视频
3.inputtype="file"accept="audio/*"capture="microphone"!--调用录音机--
4.!--不加上capture,则只会显示相应的,例如下三种依次是:拍照或图库,录像或图库,录像或拍照或图库,--
inputtype="file"accept="image/*"
inputtype="file"accept="video/*"
inputtype="file"accept="audio/*"
预览时标签不可点收录于合集#个上一篇下一篇转载请注明:http://www.abuoumao.com/hyls/504.html