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 boundaries setting for "SampleBufferVideoRenderer" re-layouting #506

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

VatamanuBogdan
Copy link

@VatamanuBogdan VatamanuBogdan commented Oct 25, 2024

Hello @hiroshihorie!
I'm experiencing issues with the camera's front-to-back switch feature, which occasionally causes the video frame to be incorrectly oriented in landscape mode when it should be in portrait mode.

To resolve this issue, I've found that it's essential to update the frame of the AVSampleBufferDisplayLayer after applying the transformation matrix. This is because the transformation matrix also rotates the frame, which can result in incorrect orientation if the frame is not updated accordingly.

@hiroshihorie
Copy link
Member

Thank you! Will test your fixes 🙏

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.

4 participants