Camerakit-android: Huge Delay for captured photo callback

Created on 9 Nov 2017  路  3Comments  路  Source: CameraKit/camerakit-android

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

  • Android 7.0
  • Samsung Note5
  • CameraKit v0.12.0

Steps to Reproduce

Capture an Image using cameraView.captureImage(callback) method

Steps:

  1. initiating an activity with CameraView and capture Button.
  2. press the Button to call cameraView.captureImage(callback) method

Expected Behavior

an Image taken and an immediate callback received at the mentioned callback in captureImage method

Actual Behavior

Image captured successfully, but I have to wait from 3-4 seconds to receive the callback

Reproducible Demo

no other projects reproduce that issue.

Most helpful comment

I found the issue, when setting camera preferences through resource declaration in xml, they are not applied, but when setting them programmatically it can read them and they are applied.

My issue was in capture method that should be set to still not standard, so all what I did is :

cameraView.setMethod(CameraKit.Constants.METHOD_STILL);

And now it is working perfectly and image capture callback just received directly.

All 3 comments

I found the issue, when setting camera preferences through resource declaration in xml, they are not applied, but when setting them programmatically it can read them and they are applied.

My issue was in capture method that should be set to still not standard, so all what I did is :

cameraView.setMethod(CameraKit.Constants.METHOD_STILL);

And now it is working perfectly and image capture callback just received directly.

I found the issue, when setting camera preferences through resource declaration in xml, they are not applied, but when setting them programmatically it can read them and they are applied.

My issue was in capture method that should be set to still not standard, so all what I did is :

cameraView.setMethod(CameraKit.Constants.METHOD_STILL);

And now it is working perfectly and image capture callback just received directly.

This won't work any longer

This won't work any longer.
Please help!!

Was this page helpful?
0 / 5 - 0 ratings