Skip to content

Width and Height inverted on mobile, but correct on desktop #503

@zqstack

Description

@zqstack

Using the following configuration, somehow width and height are inverted on mobile and correct on desktop.

The inputstream is supposed to be shown in portrait instead of landscape.

Would anyone have any ideas please?

state: {
            inputStream: {
                type : "LiveStream",
                constraints: {
                    facingMode: "environment",
                    // aspectRatio: { exact: ( 4 / 3 ) },
                    width: { exact: 360 },
                    height: { exact: 480 }
                }
            }
}

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