I am implementing camera preview for scanning a QR code. Using TextureView to render the preview on.
While camera and everything is initializing, there is a black screen, so I want to show a placeholder until camera starts rendering on the view. I used onSurfaceTextureAvailable
to ask camera to start preview, but after asking camera to start preview the is a short delay where u see the black screen again, so I need a way to know when the preview actually started.
Is this possible?
Thank you.