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

Bugfix/93 preview not resized and displayed correctly when orientation changes #238

Conversation

ryaa
Copy link
Member

@ryaa ryaa commented Jul 20, 2022

No description provided.

@riderx
Copy link
Contributor

riderx commented Aug 3, 2022

We have the same issue on ios i think @ryaa did you tried ?

@ryaa
Copy link
Member Author

ryaa commented Aug 4, 2022

We have the same issue on ios i think @ryaa did you tried ?

This should be fixed by this PR #235. Please also see more details here #232

@riderx
Copy link
Contributor

riderx commented Aug 5, 2022

@ryaa i did merge your both PR in this repo and published it :
https://github.com/Cap-go/camera-preview/tree/main
And this is still failing, when rotate the camera view take half the screen on ios

@ryaa
Copy link
Member Author

ryaa commented Aug 12, 2022

@ryaa i did merge your both PR in this repo and published it : https://github.com/Cap-go/camera-preview/tree/main And this is still failing, when rotate the camera view take half the screen on ios

@riderx, can you please try to install from my fork npm install ryaa/camera-preview#chore/my-latest-fixes-as-of-21-july-2022
It includes fixes for iOS (#232) and Android (#93) and other people tested and reported that everything seems to be working fine.

@riderx
Copy link
Contributor

riderx commented Aug 12, 2022

@ryaa after second round of testing I can see an improvement. but still not as expected.
The video doesn't rotate, then if I look down with the phone and up again it rotates.
With these settings:
CleanShot 2022-08-12 at 16 28 29@2x

https://drive.google.com/file/d/1awylwmhwq5oDWvtA8LNpcXLInbjLMmLC/view?usp=sharing

@ryaa
Copy link
Member Author

ryaa commented Aug 14, 2022

https://drive.google.com/file/d/1awylwmhwq5oDWvtA8LNpcXLInbjLMmLC/view?usp=sharing

interesting. as I understand, the problem is on an Android device, right? I will try to double check to see if I can reproduce this problem. Right now, it seems to be working ok on my end.

@riderx
Copy link
Contributor

riderx commented Aug 14, 2022

@ryaa nope that on IOS

@ryaa
Copy link
Member Author

ryaa commented Aug 14, 2022

@ryaa nope that on IOS

This PR is for the fix for android and not iOS, so this is not relevant. Please note that the fix for iOS has already been merged to master and released - see https://github.com/capacitor-community/camera-preview/releases/tag/v3.1.1

@riderx
Copy link
Contributor

riderx commented Aug 14, 2022

@ryaa the title of the fix for iOS is "fixed the problem when photos taken in the landscape orientation are off" which is not my issue.
The issue I have is "preview not resized and displayed correctly when orientation changes" so that why I posted here.
I agree the original issue is connected to Android, but not the PR, which is the one i found.
Sorry for the misunderstanding

@ryaa
Copy link
Member Author

ryaa commented Aug 14, 2022

@ryaa the title of the fix for iOS is "fixed the problem when photos taken in the landscape orientation are off" which is not my issue. The issue I have is "preview not resized and displayed correctly when orientation changes" so that why I posted here. I agree the original issue is connected to Android, but not the PR, which is the one i found. Sorry for the misunderstanding

ah.. got it... question - are you having the problem with the plugin installed from my branch (as I indicated above)? or is this the plugin installed from your branch?

@riderx
Copy link
Contributor

riderx commented Aug 14, 2022

@ryaa i tried with both and the behavior is the same, who seems normal since my branch is ISO as yours. ^^
While reading the code i don't see any change for the rotation issue in your commit for IOS, so that seems normal to me.

@ryaa
Copy link
Member Author

ryaa commented Aug 14, 2022

@ryaa i tried with both and the behavior is the same, who seems normal since my branch is ISO as yours. ^^ While reading the code i don't see any change for the rotation issue in your commit for IOS, so that seems normal to me.

Here is the change for iOS which fixes the rotation issue https://github.com/capacitor-community/camera-preview/pull/235/files
It should be there, in the plugin source code

@riderx
Copy link
Contributor

riderx commented Aug 14, 2022

@ryaa i have seen that change, for me this is the fix for "fixed the problem when photos taken in the landscape orientation are off" , but you mean that also fix when you rotate the camera that rotate the preview?

@riderx
Copy link
Contributor

riderx commented Aug 16, 2022

@pbowyer when you have time to check that one, it seems important for android too :)

@riderx
Copy link
Contributor

riderx commented Aug 29, 2022

@pbowyer if you need anything on this please ask :)
I tried the fix and it work well on my side, for now i use the fork but i would love to get back on the main project for my company :)

@pbowyer
Copy link
Collaborator

pbowyer commented Aug 29, 2022

Thanks for checking these @riderx I will merge and make a new release 👍

Re "@pbowyer when you have time to check that one, it seems important for android too :)" -- which one do you mean by "that one"?

@pbowyer pbowyer merged commit 769a3b2 into capacitor-community:master Aug 29, 2022
@riderx
Copy link
Contributor

riderx commented Aug 29, 2022 via email

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

3 participants