Android-GoldenEye
Android-GoldenEye copied to clipboard
Video recording problem with a solid green screen when using front camera on some specific devices
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
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)
}
}
Hi, does the issue happen even when you force the use of Camera1 API?
https://github.com/infinum/Android-GoldenEye#manually-set-camera-api
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