Android-GoldenEye icon indicating copy to clipboard operation
Android-GoldenEye copied to clipboard

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

Open doscode-kr opened this issue 5 years ago • 2 comments

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)
        }
    }

doscode-kr avatar Feb 11 '20 05:02 doscode-kr

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

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

domagojkorman avatar Feb 14 '20 06:02 domagojkorman

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

doscode-kr avatar Feb 17 '20 09:02 doscode-kr