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%寬度+自動高度), - 默認情況下應停止;只在懸停時玩遊戲 - 我想使用簡單的控制:玩(在點擊全屏觀看視頻後)和重放(從容器開始播放)。
我該如何做到這一點?我已經挖掘了整個論壇,但沒有成功..