3

How to rotate video in VideoView for 90 degree ? Thanks for advices

Vladimir Berezkin
  • 3,580
  • 4
  • 27
  • 33

2 Answers2

2

VideoView does not support rotation of video even if composition matrix is set correctly and rotation attribute is used.

What you can do is to use TextureView and set its attribute rotation="90" (for example). It then will rotate the frames but the aspect ratio is something that you need to handle your self. In order to do so you can use textTureView.setScaleX((screenHeight * 1.0f) / screenWidth)

More details are here: Rotating an android VideoView

Community
  • 1
  • 1
Cynichniy Bandera
  • 5,991
  • 2
  • 29
  • 33
1

may be this

android:orientation=" "

vertical or horizontal

MBMJ
  • 5,323
  • 8
  • 32
  • 51