首页 > 其他 > 详细

h5 input调起摄像头、摄像机、录音机

时间:2020-04-20 13:21:41      阅读:127      评论:0      收藏:0      [点我收藏+]

capture(调用设备媒体):

capture 属性:在webapp上使用 input 的 file 属性,指定 capture 属性可以调用系统默认相机、摄像和录音功能。

capture表示,可以捕获到系统默认设备的媒体信息,如下:

capture="camera" 相机

capture="camcorder" 摄像机

capture="microphone" 录音

实例:

<input type="file" accept="image/*" capture="camera">
<input type="file" accept="video/*" capture="camcorder">
<input type="file" accept="audio/*" capture="microphone">

h5 input调起摄像头、摄像机、录音机

原文:https://www.cnblogs.com/liangziaha/p/12736802.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!