cameraview-ex icon indicating copy to clipboard operation
cameraview-ex copied to clipboard

It's not working on emulator

Open rid-x opened this issue 5 years ago • 11 comments

Hi. I have tried to take picture on emulator, it's not working!

rid-x avatar May 07 '19 06:05 rid-x

@rid-hrant do you see any errors?

pvasa avatar May 08 '19 00:05 pvasa

@rid-hrant do you see any errors?

No.

rid-x avatar May 08 '19 08:05 rid-x

Just black screen! emulator-camera

rid-x avatar May 08 '19 08:05 rid-x

Code for taking picture. mLayout.findViewById(R.id.capture).setOnClickListener(v -> mCameraView.capture());

rid-x avatar May 08 '19 08:05 rid-x

How about camera error listener? Does it throw any exception/warning?

pvasa avatar May 08 '19 11:05 pvasa

How about camera error listener? Does it throw any exception/warning?

com.priyankvasa.android.cameraviewex.CameraViewException: Af mode 4 not supported by selected camera. Setting it to off.

rid-x avatar May 08 '19 12:05 rid-x

@rid-hrant I found the cause of the issue. It is because Af mode 4 is not supported and when that happens the impl should fall back to AF_OFF but for some reason it does not and that is why always trying to use auto focus even when it is not supported. I haven't got a chance to look into the fix yet.

pvasa avatar May 17 '19 00:05 pvasa

@rid-hrant I found the cause of the issue. It is because Af mode 4 is not supported and when that happens the impl should fall back to AF_OFF but for some reason it does not and that is why always trying to use auto focus even when it is not supported. I haven't got a chance to look into the fix yet.

Good. Will wait for fix.

rid-x avatar May 17 '19 08:05 rid-x

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 20 '19 23:06 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 22 '19 19:07 stale[bot]

Closed due to inactivity.

stale[bot] avatar Jul 29 '19 21:07 stale[bot]