EddieLa / JOB

A Barcode scanner capapable of reading Code128, Code93, Code39, Standard/Industrial 2 of 5, Interleaved 2 of 5, Codabar and EAN-13 barcodes in javascript.
http://eddiela.github.io/JOB
600 stars 204 forks source link

stream demo doesn't show result !! #27

Closed mikakhaled closed 9 years ago

mikakhaled commented 9 years ago

seems like the callback is not responding at all . just tried that in streamdemo.html JOB.StreamCallback = function(result) { console.log('test call back ') if(result.length > 0){ var tempArray = []; for(var i = 0; i < result.length; i++) { tempArray.push(result[i].Format+" : "+result[i].Value); } Result.innerHTML=tempArray.join("
"); } }; but the console didnt log any thing

EddieLa commented 9 years ago

It didn't log anything because JOB.StreamCallback won't be called if there are no results. The problem is simply that it fails to decode, it has a problem with blurred/out of focus images.

CDIDEV commented 7 years ago

I'm having the same issue. My StreamCallback is never called. Any tips?