GPUVideo-android icon indicating copy to clipboard operation
GPUVideo-android copied to clipboard

Video Rotation only rotate resolution spec, not content

Open fchristysen opened this issue 3 years ago • 0 comments

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!

fchristysen avatar Nov 22 '21 06:11 fchristysen