infinum / Android-GoldenEye

A wrapper for Camera1 and Camera2 API which exposes simple to use interface.
Apache License 2.0
375 stars 53 forks source link

Video recording problem with a solid green screen when using front camera on some specific devices #44

Open doscode-kr opened 4 years ago

doscode-kr commented 4 years ago

Hi, Infinium team. Thank you for opening a really good camera wrapper. But I have faced a problem which really hard to solve.

I'm using the front camera for recording a video and most devices work fine. But some devices show the issue.

and here is the photo green_screen

I figured out that Samsung Galaxy Note 5 and Samsung Galaxy S6 Edge+ have this issue.

I had tried to debug with devices, but the android studio says everything works fine. The problem was there, but no errors were there.

Do you have any ideas about this? (rear camera does not make this issue)

Thanks 👍

I attach the related codes below:

    private fun setupCamera() {
        if (CameraPermissionHelper.hasCameraPermission(this)) {
            goldenEye = GoldenEye.Builder(this)
                .setCameraApi(CameraApi.CAMERA2)
                .setLogger(onMessage = { s: String -> Timber.d(s) }, onThrowable = { Timber.e(it) })
                .build()

            viewModel.goldenEye = goldenEye
        } else {

            CameraPermissionHelper.requestCameraPermission(this)
        }
    }
domagojkorman commented 4 years ago

Hi, does the issue happen even when you force the use of Camera1 API?

https://github.com/infinum/Android-GoldenEye#manually-set-camera-api

doscode-kr commented 4 years ago

Thanks for your comment, It happened with Camera2 API ^^;

Hi, does the issue happen even when you force the use of Camera1 API?

https://github.com/infinum/Android-GoldenEye#manually-set-camera-api