zxing-js / library

Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem.
https://zxing-js.github.io/library/
Apache License 2.0
2.5k stars 546 forks source link

TimeBetweenTwoScan is not working #535

Open RaphaelMcledger opened 2 years ago

RaphaelMcledger commented 2 years ago

Describe the bug timeBetweenScansMillis is not working with BrowserMultiFormatReader

To Reproduce I use vuejs

import { BrowserMultiFormatReader } from '@zxing/library'
const codeReader = new BrowserMultiFormatReader (null, 1000)
codeReader.decodeFromVideoDevice(
    undefined,
    this.$refs.scanner,
    (res) => {
        console.log(res)
    }
)

Expected behavior console.log(res) should appear every 1000 milliseconds

Screenshots image

Desktop (please complete the following information):

github-actions[bot] commented 6 months ago

Stale issue message