Skip to content

My device starts the camera in an inverted way #1576

@tiomurray

Description

@tiomurray

I have a device which seems to start the camera in an inverted way: if I start the activity in portrait mode, this loads the camera with a landscape resolution, and if I start it in landscape mode, the camera starts with a portrait resolution, Is there any way to open the camera inverting the width and the height? I tried playing with rotation, width and height but didn't achieve what I want. Here is some pictures of the issue, my goal is to get the inverted result: the portrait preview in portrait mode and landscape preview in landscape mode. I could get this result but output video is stretched, as initial width and height of the signal of the camera is inverted as I said.

My current code is working fine with all devices except this one, so I guess is software issue or something related at the time of starting the camera, even before the surface is created.

WhatsApp Image 2024-09-11 at 20 34 20
WhatsApp Image 2024-09-11 at 20 34 38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions