0
我想在我的网站上使用bootstrap + html5视频播放器。这里是我已经有了:带控件的HTML5视频播放器+悬停播放
<div align="center" class="embed-responsive embed-responsive-16by9">
<div class="instruction">
<p>
click play to launch fullscreen. click replay to watch in the container from the beginning.
</p>
<button href="#" id="play">
Play
</button>
<button href="#" id="replay">
Replay
</button>
</div>
<video autoplay loop class="embed-responsive-item">
<source src=http://techslides.com/demos/sample-videos/small.mp4 type=video/mp4>
</video>
</div>
.instruction {
width:100%;
height:100%;
margin:0;
padding:0;
text-align:center;
position:absolute;
z-index:99;
color:#fff;
top:50%;
}
http://jsfiddle.net/pw7yzLfg/1/
什么,我想达到什么目的? - 视频应填充整个容器(100%宽度+自动高度), - 默认情况下应停止;只在悬停时玩游戏 - 我想使用简单的控制:玩(在点击全屏观看视频后)和重放(从容器开始播放)。
我该如何做到这一点?我已经挖掘了整个论坛,但没有成功..