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 cannot focus properly

See original GitHub issue

Describe the bug Camera cannot focus properly on Samsung device on Firefox browser. It’s working fine on Chrome and other devices. For my test, since the size of QR code is small on the object, I set the qrbox small too qrbox=250.

Expected behavior Camera should properly focus on the QR code.

Screenshots zoom

Smartphone:

  • Device: Samsung Galaxy Note5
  • OS: Android 7.0
  • Browser Firefox
  • Version 92.1.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
amerfathullahcommented, Oct 12, 2021

fixed by setting focusMode: "continuous" in video constraints

0reactions
clzolacommented, Oct 23, 2022

@nicocirio do you have maybe an iphone around you test does it work for you on android. I have copied your code, set 3s delay just to be sure. Also I have put alert box before applying constraints just to see if function is executed, however I still cannot get camera to focus properly. Also since I have put zoom to be 2.0, I guess I should notice zoom after video constraints are applied, however nothing happens…

I guess best solution would be just to have zoom applied, that way picture would be bigger and phone would not need to be so closed to the code…

Read more comments on GitHub >

github_iconTop Results From Across the Web

My Camera Won't Focus: The 8 Most Common Problems
My Camera Won't Focus: The 8 Most Common Problems · 1. The Lens Needs to Be Calibrated · 2. Dirty AF Sensors ·...
Read more >
What to do When Your Camera Won't Focus
1 – Remove and remount the lens. This is probably the most common reason that your camera won't focus. The camera and lens...
Read more >
5 Reasons Your Camera Won't focus (And What To Do About it)
If there's a poor electrical connection between your lens and your camera, your camera's focusing system won't work. It's unusual, but it could...
Read more >
How to do a Camera Focus Test for Autofocus Issues
The easiest way is to take your camera to a service centre and allow an expert to look at it. There are ways...
Read more >
15 Tips For When You're Having Trouble Focusing Your Camera
Try using a hand or a lens hood to block out the light, and then lock your focus. You may have to change...
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