camerakit-android icon indicating copy to clipboard operation
camerakit-android copied to clipboard

Flash fired twice, but not at the right time

Open chbaumgaertner opened this issue 6 years ago • 2 comments

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Huawei P20 Pro Android 8.1.0 API 27 CameraKit 3.10

Steps to Reproduce

I'm trying to take pictures with forced flash. During the capture sequence the flash fires twice, but the image doesn't show any flash.

The code is working fine using a Oneplus Two (Android 6.0.1 API 23).

The code is directly copied from the tutorial at https://camerakit.io/docs

The only modification is activating the flash: <com.camerakit.CameraKitView android:id="@+id/camera" android:layout_width="match_parent" android:layout_height="wrap_content" android:adjustViewBounds="true" app:camera_flash="on"/>

Expected Behavior

The image should be captured using the flash.

Actual Behavior

The flash is fired twice during capture, but the image doesn't show any flash. I took a picture in front of a "mirror" to make sure, that the flash is not fired on time.

This is the image captured. https://drive.google.com/file/d/1B_NywQn5PZuFE4WodtfsINwXEpbxoYhY/view?usp=sharing

This is a video shot with a different phone, showing the capture sequence. https://drive.google.com/file/d/1DdAMvhf9Ei_AUxTukwVc-etAdu88pBZu/view?usp=sharing

chbaumgaertner avatar Jan 03 '19 16:01 chbaumgaertner

@chbaumgaertner What version of CameraKit are you using? We don't have a strict CameraKit 3.10 version but I assume you mean Beta3.10?

austinkettner avatar Jan 04 '19 18:01 austinkettner

Hi all,

I'm also meet this issue.

Environment: Xiaomi Note 6 Pro Android 9 API 28 CameraKit 1.0.0-beta3.10.

But when I updated to CameraKit 1.0.0-beta3.11, onImage() is not called. Nothing happen after I capture image.

Environment: Xiaomi Note 6 Pro Android 9 API 28 CameraKit 1.0.0-beta3.11.

Settings: Flash is ON.

datpx avatar Feb 07 '20 10:02 datpx