【问题标题】:Issue in Html 5 Qr code readerHtml 5 二维码阅读器中的问题
【发布时间】:2014-03-20 08:28:22
【问题描述】:

我正在开发一个移动应用程序,它使用二维码扫描仪。我正在使用以下代码http://dwa012.github.io/html5-qrcode/。根据“自述文件”文件中的说明。我编写了以下代码。

 <div  class="center" id="reader" style="width:300px;height:250px;">
<script type="text/javascript">
$('#reader').html5_qrcode(function(data){
         // do something when code is read
    },
    function(error){
        //show read errors 
    }, function(videoError){
        //the video stream could be opened
    }
);




</script>
</div>

但我没有得到输出,它没有打开网络摄像头。 请帮助找出我出错的地方。

【问题讨论】:

  • 我认为它不适用于移动 webview。因为到目前为止,在移动浏览器中还没有直接访问相机的功能..
  • 目前,我至少需要在电脑上打开
  • 我可以从浏览器访问网络摄像头,但我无法看到显示。

标签: javascript jquery html qr-code


【解决方案1】:

如果 github 示例页面适合您,那么听起来您可能没有运行服务器。 See if this stackoverflow question helps you.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-13
    相关资源
    最近更新 更多