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

Fix IOS video dimensions #2211

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

qusaieilouti99
Copy link

I found this solution on one of this package's issues and it worked perfectly with me, so instead of just patching it this can be a fix for everyone.

Motivation (required)

When picking a MOV video from the camera picker or photos library, the picked dimensions are always in landscape mode even if you picked a portrait video, this PR fixes this behavior and returns the correct dimensions based on the correct mode.

Test Plan (required)

Just try to record a video using the library in portrait mode and read the dimensions.
1- Before this PR: 1920w * 1080h.
2- After this PR: 1080w * 1920h.

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

Successfully merging this pull request may close these issues.

None yet

2 participants