I know there are ways using TextureViews and some other ways, but can we do a video flip in a VideoView, I tried using the method scaleType of X axis to -1, but just getting a black screen. Is there no way to do a simple video flip for a video being played in a videoview? Am I forced to use a TextureView or other methods?
Asked
Active
Viewed 4,738 times
7
-
1I pretty sure you'll have to use a `TextureView`. – Mike M. Apr 18 '16 at 08:10
-
I hope this post helps you http://stackoverflow.com/questions/8586526/rotating-an-android-videoview/16490065#16490065 – Apr 18 '16 at 09:04
1 Answers
11
As you said, the best option is to use TextureView
... Android's VideoView
can only play videos straight and not mirrored.
If you want your app to play a video mirrored (for instance if the video was recorded using a front camera), you will need to use a TextureView
, which can be easily mirrored by specifying android:scaleX=-1
in the XML file, or textureView.setScaleX(-1)
in the code. (source)

Alvaro
- 1,430
- 2
- 23
- 41
-
thought so, still hoped Google's VideoView was a good enough implementation to do video manipulation, and that I was missing something that might allow it. – king_below_my_lord Apr 20 '16 at 11:28