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

[BUG]: Getting Wrong Orientation In onLoad- naturalSize #3705

Closed
sagaraanjna opened this issue Apr 23, 2024 · 8 comments · Fixed by #3719
Closed

[BUG]: Getting Wrong Orientation In onLoad- naturalSize #3705

sagaraanjna opened this issue Apr 23, 2024 · 8 comments · Fixed by #3719
Labels

Comments

@sagaraanjna
Copy link

Version

v6 (Beta)

What platforms are you having the problem on?

Android

Architecture

Old architecture

What happened?

In onLoad naturalsize, orientation of video is wrong, showing landscape for portrait video and portrait for landscape, same with height and width of video

Reproduction

repository link

Reproduction

Step to reproduce this bug are: onLoad

@freeboub
Copy link
Collaborator

I opened a pull request to fix an issue on ios, but I don't reproduce the issue on android.
If you have the issue on android, can you provide a sample video which have the issue please ?

@sagaraanjna
Copy link
Author

sagaraanjna commented Apr 29, 2024

Yes in android, My videos Orientation is Portrait but getting landscape.
expected output: "Height" : 1280, "Width" : 720 , "Orientation": "Portrait"
console

@KrzysztofMoch @freeboub

@freeboub
Copy link
Collaborator

@sagaraanjna Can you share a sample video please ?

@sagaraanjna
Copy link
Author

video how? like what should i record in it.

@freeboub
Copy link
Collaborator

I need a link to a sample video to be able to reproduce the issue. I recorded a video on my phone and integrate it in the sample and I have no issue on sample app.

@sagaraanjna
Copy link
Author

first video is recorded in landscape mode (height, width, orientation is

video_20240430_133342_edit.mp4

ok for it) but the second video is recorded in portrait mode but its showing landscape in onLoad naturalSize and Width and height is also not correct ,
expected orientation Portrait , Height : 1920, and Width : 1080,
hope you understood :)

@freeboub
Copy link
Collaborator

Yes I understand, but I have no idea on how to reproduce the issue without the video ...
Did you test with the basic sample in the repo ?
if you can open a branch with your sample video, it would allow me to reproduce the issue !

@sagaraanjna
Copy link
Author

try recording a video in portrait mode and check its naturalSize -> height width and orientation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants