Followed this https://stackoverflow.com/a/44324039/1427037 https://inducesmile.com/android/android-camera2-api-example-tutorial/ but still camera2 API gives stretched Preview in Samsung device android 9.0 OS. Lots of stackoverflow solution already tried but no advantage. Any help ? Note: Cant use camera API with SurfaceHolder.
Camera2 API with TextureView/ AutoFitTextureView preview gets stretched in Portrait Mode
312 Views Asked by Erum At
1
There are 1 best solutions below
Related Questions in ANDROID-CAMERA2
- Camera2 how to detect focus on a metering area
- MAUI - Android Camera2 - How set Rotate and Crop in CaptureRequest
- Using Camera2 with physical lenses does not show all lenses on all phones
- Long initialization of USB camera when using Camera X
- Set up remote camera monitoring on Android OS without user input
- Saving Images as Ultra HDR (JPEG_R)
- CameraX custom OpenGL Video Pipeline (`UseCase`/`VideoOutput`)
- Manual white balance using Camera2 API on Google Pixel phones
- Android Camera 2 API , Focus Distance and EV Control query
- Understanding LENS_FOCUS_DISTANCE Accuracy and Calculation for Distance Measurement on Samsung S22
- Android FotoApparat library how to make the cameraView zoom how?
- Android - Camera2 tap to focus not working
- How can i perfectly Pass Processed frames to Display?
- Android - take a 200mp photo programmatically
- Android: Get native HardwareBuffer Format (ImageFormat.PRIVATE)
Related Questions in ANDROID-TEXTUREVIEW
- Make component width independent from text length
- Letterbox a video preview within a box
- How to create mediaRecorder for video and connect to existing textureView with Camera2 Kotlin API
- Draw YUV frames on GL/Surface/TextureView
- android.media.ImageWriter produces green screen screen on every second posted Image frame
- Camera2: SurfaceTexture buffer size is being overridden
- How to use cameraX with SurfaceView/TextureView?
- How to display SurfaceTextures on a TextureView in android
- How to set low resolution in a TextureView in Android Studio
- How do I use a TextureView for a Vulkan app
- ViewPager2 play video only in selected item
- ReleaseTexImage crashing in Android 9
- Listen for TextureView first frame render
- camera2 used. When I call closeCamera, last seen frame is displayed instead of black screen
- Camera is not displaying to the complete width of AutoFitTextureView using CameraAPI2 sample code
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
check this one