Help on adding pause on Quagga js

Can you restart quagga.js? link
It’s a javascript library for barcode scanner. After I use Quagga.stop();
I can’t use Quagga.Start() again.

$(".controls").on("click", "button.stop", function(e) {
e.preventDefault();
alert('stop');
Quagga.stop();
//self._printCollectedResults();
});

$(".controls").on("click", "button.start", function(e) {
e.preventDefault();
alert('start');
Quagga.start();
//self._printCollectedResults();
});

Why not? What is your expected result? What is the actual result?

I got it solved. I have to reinitialized it again. Could I mark this question as close? But thanks for giving a reply on my question.

No, we don’t have that option on these forums.
Glad you got it resolved though :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.