How to rotate a video in VideoView

How to rotate a video in VideoView 90 degrees? Thanks for the tips.

+3
source share
2 answers

VideoView does not support video rotation, even if the composite matrix is ​​set correctly and the rotation attribute is used.

What you can do is use TextureView and set its rotation = "90" attribute (for example). Then it will rotate the frames, but the aspect ratio is what you need to deal with yourself. For this you can use textTureView.setScaleX ((screenHeight * 1.0f) / screenWidth)

Read more here: Android video review rotation

+2
source

android:orientation=" "

vertical horizontal

+1

Source: https://habr.com/ru/post/1772369/


All Articles