Android – how do I flip (mirror) a video in videoview?

I know there are many ways to use textureviews and other methods, but can we flip the video in videoview? I tried to set the scaletype method of X axis to - 1, but only a black screen appears. Can we simply flip the video played in videoview? Am I forced to use TextureView or other methods?

resolvent:

As you said, the best choice is to use TextureView... Android videoview can only play video directly, not mirror

If you want your application to play a mirrored video (for example, if the video is recorded with a front camera), you need to use TextureView. You can easily mirror it by specifying Android: scaleX = - 1 in the XML file, or textureview.setscale (- 1). (source) in the code

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>