I am making a media player app for a TVBox running Android 7.1.2. I want to rotate the HDMI output but the box's rotation is locked to landscape so I cannot rotate the app using setRequestedOrientation
.
The library I use is VLC Android with SurfaceView. I cannot use TextureView because it is so lag and drop FPS.
To rotate the HDMI output, I have tried the following:
- Modify the build.prop file but no luck.
- Install a bunch of screen rotating app but it didnt work either.
- I have tried this and some relate tutorial but it didnt work :
- I try to used MediaRouter but the box recognized the HDMI as main screen and not external.
- I tried using VLC filter
:video-filter=rotate, :video-filter=transform
but it will only be available in 4.0. - I also modified VLC source code but saddly it only rotate picture, not video.
So is there any other way I can try to rotate screen orientation of HDMI output? Is there any chance that we can rotate screen by OpenGl ES or native code?
Thank you.