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

Video Rotation only rotate resolution spec, not content #93

Open
fchristysen opened this issue Nov 22, 2021 · 0 comments
Open

Video Rotation only rotate resolution spec, not content #93

fchristysen opened this issue Nov 22, 2021 · 0 comments

Comments

@fchristysen
Copy link

Hi, I'm currently trying to rotate GPUPlayerView using gpuPlayer.rotation = gpuPlayer.rotation - 90f
The view is rotated correctly, but the video content being played is not rotated correctly instead stretch based on new rotated resolution. How can I correctly rotate the content?

BEFORE

Screenshot from 2021-11-22 13-06-02

AFTER

Screenshot from 2021-11-22 13-06-15

Some have suggested using app:surface_type="texture_view" for rotating exoplayer, but not sure how to do this with GpuPlayerView

Thanks!

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