List
Ap crash when switch to front camera on Android 7.0
Posted Date: 2018-01-19 8:23     Edited Date: 2018-01-25 5:01     Writer: inactive

I have faced this issue. Please help to fix. I need release app to meet deadline . Thank so much :(

Posted Date: 2018-01-19 9:34     Edited Date: 2018-01-19 9:34     Writer: inactive

Thanks for using our sdk.

Could you please give us more information about your problem?

Is your project made by unity, or android native?

If unity, please build your project with development build option and let us know logcat message.

Thanks

- Maxst support team

Posted Date: 2018-01-22 6:38     Edited Date: 2018-01-22 6:38     Writer: inactive

Hi support team!

i attach debug log image! Hope can help you fix it! My project is android native

Posted Date: 2018-01-22 7:02     Edited Date: 2018-01-22 7:02     Writer: kscho

W're fixing the camera issue.

We'll update SDK until tomorrow.

Thanks.

 

- MAXST Support Team

Posted Date: 2018-01-23 7:01     Edited Date: 2018-01-23 7:01     Writer: kscho

Hello.

We've just updated SDK 3.4.2 which solves the camera crash problem.

If you have any problem, feel free to ask us.

Thanks.

 

- MAXST Support Team

Posted Date: 2018-01-23 7:48     Edited Date: 2018-01-23 7:48     Writer: inactive

Hello,

But front camera is reverse. Can you recheck it? Nexus 6, android 7.0

Posted Date: 2018-01-23 8:01     Edited Date: 2018-01-23 8:01     Writer: slkim

please call this function.

Android Native :
CameraDevice.getInstance().flipVideo(CameraDevice.FlipDirection.VERTICAL, false);

 

Unity :

CameraDevice.GetInstance().FlipVideo(CameraDevice.FlipDirection.VERTICAL, false);

Posted Date: 2018-01-23 8:59     Edited Date: 2018-01-23 8:59     Writer: inactive

Hi there!

i use same your demo, but bug still here. One more bug, app switch to background and open again, app auto switch to back camera

Posted Date: 2018-01-23 9:12     Edited Date: 2018-01-23 9:12     Writer: slkim

Camera closes when you enter background.

then, you must save selected camera number. like cameraId.

If you are on Android, Maybe Android OS call function OnResume(), When you return your App.

TrackerManager.getInstance().startTracker(TrackerManager.TRACKER_TYPE_IMAGE);
CameraDevice.getInstance().start(cameraId, preferCameraWidth, preferCameraHeight);

You must call above two function for use your saved Camera.

Posted Date: 2018-01-24 2:14     Edited Date: 2018-01-24 2:14     Writer: inactive

Hi Slkim

You can see second image in thread, i run on nexus 6, android 7.0, same config with your demo => Image reverse . But when i run on asus android 5.0, oppo 5.1, it show third image. I dont know why it happen on android 7.0, can you check it?

Posted Date: 2018-01-24 4:01     Edited Date: 2018-01-24 4:01     Writer: inactive

On Nexus 6, android 7.0, your demo

 

Posted Date: 2018-01-25 5:01     Edited Date: 2018-01-25 5:01     Writer: slkim

1. Save Your Camera Position.

private int cameraNumber = 0;

2. OnResum() function. No add flipVideo function. because already added flip function when you select front.

Just use start function.

ResultCode resultCode = resultCode = CameraDevice.getInstance().start(cameraNumber, preferCameraWidth, preferCameraHeight);