I am working with VLCAndroid library. At the beggining I used TextureView so I can rotate the player any direction I want. But the TextureView have shown poor performace and drop FPS in some old devices then I must switch back to the SurfaceView. But I cannot rotate the player any more
I have tried to set the direction of the activity by requestOrientation()
, but the devices I work with cannot set it's direction to REVERSE_LANDSCAPE
.
I have tried to set VLC option but it's not working either:
args.add("--video-filter=rotate")
args.add("--rotate-angle=180")
So my only option left is to rotate the SurfaceView of VLCLayout. But I tried to set its orientation by 180f but it didn't work too.
Do you know how to rotate the SurfaceView? Thank you.
from https://code.videolan.org/videolan/vlc-android/-/blob/master/libvlc/src/org/videolan/libvlc/VideoHelper.java
you need to play with the scale and aspect ratio functions.