Closed Squall-Huang closed 2 years ago
Do you have screenshot? I thought you used AndroidX SurfaceProvider?
I use
io.github.thibaultbee.streampack.views.AutoFitSurfaceView
Hi ThibaultBee:
io.github.thibaultbee.streampack.views.AutoFitSurfaceView
AutoFitSurfaceView stretch image.
I don't know how to solve this problem?
Do you have the same aspect ratio on the demo-camera
?
It is not supposed to look like this.
Have you tested everything with the layout_width
or layout_height
Can you share your layout.xml?
Hi ThibaultBee: Thank you for reply!^^ I have chaged to another lib made with CameraX and solve this problem. But still very thanks for your enthusiastic reply.
Hi: My app's camera AutoFitSurfaceView preview's image in portrait too thin,but in landscape too fat. How to solve this problem?