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.

Improve/rename `start` property

See original GitHub issue

Well, this property is a little confusing, my suggestion is to rename it to autostart and refactor the code to make less use of it. Also, methods should be included to start/stop scan and play/pause the preview.

If people still wants this property, I thikn it should be at least renamed to make it clear what it does. Also, there are implementations of the component property that reproduces strange behaviors.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
werthdavidcommented, Feb 27, 2018

Thanks! Well… there’s no ETA but we wanna release as soon as possible. At this point you can’t pause scanning directly you can only stop and start it, but when you stop it the preview is gone. A workaround would be that when you pause scanning you just don’t handle the scan-result. This is just a workaround since decoding takes place and generates CPU-load but oh well… 😉

Pseudo code:

<ngx-zxing [start]="cameraStarted" [device]="selectedDevice" (onCamsFound)="displayCameras($event)" (onScan)="handleQrCodeResult($event)"></ngx-zxing>
handleQrCodeResult(result: string): void {
  if(!this.paused) {
    console.log("My result is", result);
  }
}
1reaction
ilinkMatcommented, Feb 27, 2018

Awesome work guys! When would the v1.0.0 be released ? Is there a way to pause the scanning and resume scanning when needed ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tips for Starting a Property Management Company
Thinking about starting a property management company or taking on a career in the industry? In this article, we'll show you what a...
Read more >
Remote resources allowed by epubcheck if declared #852
xhtml(-1,-1): The property 'remote-resources' should be declared in the OPF file. ERROR(RSC-006): ..epub/OPS/content_001.xhtml(8,45): Remote ...
Read more >
Ansys Fluent Text Command List - Clarkson Confluence
431) lists commands used to create and manage mesh properties. ... Fluent console, or in a separate window if the command starts an...
Read more >
What's New - Onshape
New assembly computed properties with aggregation options (Mass); New Curvature ... New Simulation in Assemblies (Enterprise to start, Pro at a later date) ......
Read more >
PCSWMM Updates and Downloads
Download the latest version of PCSWMM and browse update history.
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