I have a react application where i am using html5 video tag to show a cover video. It works on ipad, android and all the major browsers but on iphone it just shows a glimpse of a play button which if clicked shows a full page video.
class FrontPage extends React.Component{
constructor(props) {
super(props);
this.authorize = [''];
}
render() {
return (
<div>
<video controls="true" style={BGstyle} preload="yes" autoPlay muted loop width="100%" height="auto">
<source src="/images/film.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
<Ladder/>
<SignUp/>
</div>
);
}
}
var BGstyle = {
position: "absolute",
zIndex:999,
right:0,
bottom:0,
minWidth:'100%',
width: 'auto',
backgroundSize:"cover"
}
export default FrontPage;
you can see it on www.viogto.dk