9

I'm creating an app to read barcodes. I'm using QuaggaJS as a barcode reader library. My problem is that I can turn the torch on, but I can't turn it off.

var track = Quagga.CameraAccess.getActiveTrack();
track.applyConstraints({advanced: [{torch:true}]}); //Torch is on
track.applyConstraints({advanced: [{torch:false}]}); //Torch still on :(

Is there a way to turn the torch off?

grooveplex
  • 2,492
  • 4
  • 28
  • 30
Diego
  • 561
  • 1
  • 7
  • 18

0 Answers0