Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jCustomCamera take photo problem #483

Open
afuriza opened this issue Jan 1, 2023 · 0 comments
Open

jCustomCamera take photo problem #483

afuriza opened this issue Jan 1, 2023 · 0 comments

Comments

@afuriza
Copy link

afuriza commented Jan 1, 2023

Code:

procedure TmdCamera.jButton1Click(Sender: TObject);
begin
  jCustomCamera1.TakePicture();
end; 

Seems it keep trying to check if the photo focused or not before taking a photo. When I move the phone to different direction, camera will refocus and I can capture the picture. But, if it think the camera is not focused, it won't capture the picture, I keep pressing the button and nothing happens.

I tried jCustomCamera1.AutoFocusOnShot := True;, still the same. Can I force it to take the picture no matter what even it's not focused?

Also, it will make app crashed if I keep the app running and phone got idle for a long time. If I show again the jForm from long idle time that contains jCustomCamera, it will crashed. Also, if I locking the screen while keep opening the jForm that contain jCustomCamera, it will crashed again after I unlocked the phone.

Tested on:

  • Xiaomi Note 7
  • Sony Xperia XZ1
  • Sony Xperia XZ2 Compact
WhatsApp.Video.2022-12-31.at.16.15.04.1.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant