Skip to content Skip to sidebar Skip to footer

Why My Video Doesnot Fit The Size Of The Texture As I Change The Size Of The Texture

Iam trying to animate a video rendered using texture view, the animation works fine , but when i scale the texture to a different size the media player does not scale to fit the s

Solution 1:

If you want to scale the TextureView's contents, use setTransform(). For an example, see adjustAspectRatio() in Grafika's PlayMovieActivity class, which changes the size of the TextureView contents to match the aspect ratio of the video being played.


Post a Comment for "Why My Video Doesnot Fit The Size Of The Texture As I Change The Size Of The Texture"