2013-12-12 40 views
1

我正在開發一個移動應用程序,它使用QR碼掃描器。我使用以下代碼http://dwa012.github.io/html5-qrcode/。按照「自述文件」中的說明。我有以下代碼。Html 5 Qr代碼閱讀器中的問題

<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> 

但iam沒有得到輸出,它沒有打開攝像頭。 請幫我弄清楚我出錯的地方。

+0

我不認爲它會在移動webview中工作。因爲目前在手機瀏覽器中沒有直接訪問攝像頭的機會。 –

+0

截至目前,我需要在電腦上打開至少 – user3081972

+0

我可以從瀏覽器訪問攝像頭,但Iam無法看到顯示。 – user3081972

回答