HTML5 Video dimensions in Safari IOS -


i'm building website client who's majority of content video. i'm using html5 video element display content have problems when comes safari on ios.

safari on ios not download video metadata until user initiates download, width , height properties of video set default size of 300 x 150 px - leaving big area of black on either side of video stretching width of containing element.

i'm trying make website responsive possible , default size not work me. there anyway combat safari on ios respects video size?

i used following css worked me. tested on ipad mini ios 7.1

video {  min-height: 100%;   min-width: 100%;   height: auto !important;  width: auto !important;  } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -