Using a VideoView is it possible to set a scale factor for Android? By Default the video view resizes itself to fit the encoded resolution of the Video. Can I force Android to render a video into a smaller or larger rect?
Answer
By Default the video view resizes
itself to fit the encoded resolution
of the Video.
VideoView
(or the SurfaceView
for use with MediaPlayer
) will be the size you tell it to be in your layout. Within that space, the video will play back as large as possible while maintaining the aspect ratio.
Can I force Android to render a video
into a smaller or larger rect?
Yes: make your VideoView
be the size you want, and Android will scale to fit the size of the VideoView
.