question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Camera usage after calling `barcodescanner.stop();`

See original GitHub issue

Hi there,

Thank you for providing this awesome library!

In my app, it seems that the camera always stays on after starting a barcode scanner. Even after I call barcodeScanner.stop(). Is this the expected behavior? Will it drain the battery?

If it’s not the expected behavior I might have another piece of my code that activates the camera.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
erikverheijcommented, Oct 2, 2019

Thanks for this fix, awesome!

0reactions
lucasumbertocommented, Jul 20, 2020

@EddyVerbruggen Just a point in this issue that might be relevant for someone or maybe a fix.

When the IOS BarcodeScanner vue component is turned off via v-if/else, you will not be able to stop it from scaning even changing the pause variable… it’s just a thought, i didn’t tested far to be sure… I changed it to a v-show and the pause attribute worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter ML-Kit BarcodeScanner returns old result. How do I ...
Launch app. · Point camera AWAY from any potential barcodes. · Press Scan Barcode button => app navigates to BarcodeScanPage and starts image ......
Read more >
Scanning data with the camera
To stop scanning, use the DataScannerViewController stopScanning() method in one of the delegate methods. For example, after you capture information about ...
Read more >
BarcodeScanner for Video
The following code snippet shows the basic usage of the BarcodeScanner class. ... hide(), Stops decoding, releases camera and unbinds UI.
Read more >
BarcodePicker | Scandit Barcode Scanner SDK for the Web
If the camera stream was stopped when calling pauseScanning, the camera stream is also resumed and user permissions are requested if needed to...
Read more >
Getting Started with Camera Barcode Scanner
Use these step-by-step instructions and code snippets to get started using a camera barcode scanner.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found