Using libVLC in portrait mode 2k and 4k videos get rotated
I have written an app which needs to run in portrait mode on an android TV box as I want to display a video at the top of the screen with a dashboard below it showing other information. If the source video is less than or equal to the android screen size in landscape mode then the video plays correctly in portrait mode. If it is larger than the video plays rotated. So on an Android TV box which has a UI resolution of 1280x720 then 1920x1080 videos get rotated. On an Android TV box which has a UI resolution of 1920x1080 then 2K and 4K videos get rotated. Is libVLC doing this or is it android itself ? Is there any way to prevent this ?