2

我想自定义 html5 视频,只显示音量控件,我希望它在加载时自动播放,并隐藏其余控件。我还想在最后显示一个再次播放按钮。所有帮助表示赞赏!

 <video id="video_1"                             
                          autoplay="autoplay"  width="100%" height="264"
                          poster="videos/benstatue.jpg"
                          >
                         <source src="videos/benstatue.mp4" type='video/mp4' />
                         <source src="videos/benstatue.webm" type='video/webm' />
                         <source src="videos/benstatue.ogv" type='video/ogg' />
                        </video>

谢谢!

4

1 回答 1

1

with the controls attribute you can enable all controlls. if you want only the volume controll you must make it with JavaScript. Here is a tutorial: http://www.broken-links.com/2009/10/06/building-html5-video-controls-with-javascript/

you can also use a libary http://www.videojs.com/

于 2013-06-17T17:55:09.427 回答