jQuery摄像头插件jquery-webcam-plugin

所属分类:其他-独立的部件

 126191  412  查看评论 (51)
分享到微信朋友圈
X
jQuery摄像头插件jquery-webcam-plugin ie兼容6

例子

请注意:您的相机摄像头工作正常

Flash对象将被嵌入到下面的div:

<div id="webcam"></div>
jQuery("#webcam").webcam({

    width: 320,
    height: 240,
    mode: "callback",
    swffile: "jscam_canvas_only.swf", // canvas only doesn't implement a jpeg encoder, so the file is much smaller

    onTick: function(remain) {

        if (0 == remain) {
            jQuery("#status").text("Cheese!");
        } else {
            jQuery("#status").text(remain + " seconds remaining...");
        }
    },

    onSave: function(data) {

        var col = data.split(";");
    // Work with the picture. Picture-data is encoded as an array of arrays... Not really nice, though =/
    },

    onCapture: function () {
        webcam.save();

      // Show a flash for example
    },

    debug: function (type, string) {
        // Write debug information to console.log() or a div, ...
    },

    onLoad: function () {
    // Page load
        var cams = webcam.getCameraList();
        for(var i in cams) {
            jQuery("#cams").append("<li>" + cams[i] + "</li>");
        }
    }
});
相关插件-独立的部件

jQueryShare分享插件支持微信分享

jQueryShare实现弹出层分享插件修改版,支持微信分享
  独立的部件
 60464  472

jQuery前端excel导入插件xlsx.core.js

此插件作用可以把excel表,导入到网页中用table显示出来
  独立的部件
 56082  415

html5读取二维码

手机端web调用摄像头读取解析二维码
  独立的部件
 62106  435

jQuery分享插件jquery.share.js

jQuery分享插件jquery.share.js享到QQ、微信、微博、google、in、tweeter等
  独立的部件
 113942  638

讨论这个项目(51)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

    199483611 0
    2023/1/6 21:27:13
    老师您好,能否加您的微信,交流一下,把您的这个代码改一下,作成是视频实时画面上的一个透明的层,我的微信xiaobai47007 回复
    CHANG 0
    2020/12/22 9:49:34
    在vue中怎么使用 回复
    下╁、页已不再继续 0
    2019/7/15 14:02:55
    调用后置摄像头呢、现在默认打开的前置摄像头,这个怎么切换
        LEe0
        2019/8/6 14:39:16
        请问解决调用后置摄像头的问题了吗?
    回复
    ⑦?秣?] 0
    2019/7/4 9:16:23
    IE9\IE10报: flash movie not yet registered,ie浏览器F12网络xxx/xxx/xxx.swf会提示已终止
        1994836110
        2023/1/6 21:23:55
        我这边观看演示,得到的提示产,adobe flash player已不再受支持
    回复
    left 瑞?の 0
    2019/4/16 16:36:07
    IE9\IE10报错: flash movie not yet registered 回复
    to fly 0
    2018/12/6 14:05:12
    大神们问下。需求需要手机摄像头扫描条形码,取到条形码的值。这个怎么实现?可以用这个吗?我要怎么取到条形码的值? 回复
    Dumbness 0
    2018/5/12 13:26:41
    我这边拿出源码来,怎么就用不了呢?是要修改什么地方嘛?
        梧桐0
        2019/10/17 14:41:47
        路径
    回复
    Jarvan IV 0
    2018/4/24 16:24:29
    改变尺寸照片。保存下来的照片很模糊怎么办啊
        凌点心情0
        2018/4/26 16:12:29
        swf默认只支持320X240,改变的大于这个值肯定模糊了!如果想要拍摄更大的图片,需要重新编译swf文件!网上有这种方法
    回复
    Jarvan IV 0
    2018/4/24 10:31:16
    为什么不支持拍照的方法
    回复
    奈何、花落去 0
    2018/2/28 15:32:09
    谷歌为什么打不开摄像头?
        Hopeful0
        2019/2/21 14:58:43
        chrome需要https
    回复
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复