【发布时间】:2017-02-12 14:42:47
【问题描述】:
我有一个反应应用程序,我在其中使用 html5 视频标签来显示封面视频。它适用于 ipad、android 和所有主要浏览器,但在 iphone 上它只是显示一个播放按钮的一瞥,如果单击该按钮会显示一个完整的页面视频。
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;
您可以在 www.viogto.dk 上看到它
【问题讨论】:
-
我发现这是一个 css 错误,如果我删除它在 iphone 上工作的所有 css。如何在 iPhone 上制作封面视频?