On Android, inline html5 tag will stretch video playback

I have a video tag with width and height set to a dimension that doesn't match the video format. When I see the page on an Android tablet, the video playback is stretched to fill the video clip. If in ipad or desktop browsers they will be centered.

<video width="xxx" height="yyy">
   <source ...>
   ...
</video>

      

If I only use width and not height, then the video will maintain the aspect ratio, but I want to keep the height and center the video playback.

Is there a way to do this in Android browsers?

Thank,

+3
android html5 video aspect-ratio


source to share


No one has answered this question yet

Check out similar questions:

105
What's the difference between the types CENTER_INSIDE and FIT_CENTER?
85
Maintain div aspect ratio but screen width and height in CSS?
nine
How can I make my HTML 5 video playback fit for the frame instead of maintaining the aspect ratio?
five
HTML5 video guide width or height
3
Stretch html5 video without keeping aspect ratio in jQuery
1
Full screen VideoView with stretched video. [Android]
0
Inconsistent HTML5 video playback at variable resolution in browsers
0
Get HTML5 video dimensions (play area - not split) during playback
0
Android: video stretches to change orientation
0
Stretch video larger than screen size



All Articles
Loading...
X
Show
Funny
Dev
Pics