Skip to content

CameraX preview issues in camera-view alpha09 & alpha10 #212

@mgarciaguerrero

Description

@mgarciaguerrero

Description

I'm facing some issues of your CameraX sample app when running on my testing device. The problem is that the preview is not fully displayed (screenshot below).

After some investigation, I can confirm it happens in both camera-view versions alpha09 and alpha10 (alpha08 works fine). If I set the preferredImplementationMode to use TextureView (as recommended in the documentation), then the issue disappears.

val camera = cameraProvider.bindToLifecycle(lifecycleOwner, cameraSelector, preview)
previewView.preferredImplementationMode = ImplementationMode.TEXTURE_VIEW
preview.setSurfaceProvider(previewView.createSurfaceProvider(camera.cameraInfo))

However, taking into account this comment, seems that it is not recommended:

Screenshot

device-2020-04-24-174439

Device information

  • Device name: Samsung Galaxy Note5
  • Model: SM-N920C
  • Android version: 7

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions