【发布时间】:2015-06-27 00:14:46
【问题描述】:
我正在制作一个 Starbuzz 咖啡网页,其中放了一些视频。每当我进入该页面时,视频就会自动开始。即使没有我点击播放按钮。我希望视频仅在用户单击播放按钮时开始播放。
我使用<video> 命令。
基本上我希望视频默认暂停。我使用谷歌浏览器。有没有办法做到这一点?
我的代码是:
<article>
<video controls width="512" height="288" autoplay>
<source src="Starbucks Coffee Perfection.mp4">
<source src="Starbucks Coffee Perfection.webm">
<p>Sorry, your browser doesn't support the video element.</p>
</video>
</article>
【问题讨论】:
标签: html google-chrome video html5-video