Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zqstack opened this issue Apr 6, 2024 · 0 comments
Open

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

zqstack opened this issue Apr 6, 2024 · 0 comments

Comments

@zqstack
Copy link

zqstack commented Apr 6, 2024

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 }
                }
            }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant