How to automatically pause a video in html?

Ash*_*uja -3 html video google-chrome html5-video

I am making a Starbuzz coffee Webpage, in which I am putting some videos. Whenever I come on that page, the video starts automatically. Even without me clicking on the play button. I want the video to only start when the user clicks on the play button.

I use the <video> command.

Basically I want the video to be put in pause by default. I use Google Chrome. Is there a way to do that?

My code is:

<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>
Run Code Online (Sandbox Code Playgroud)

Boz*_*jic 5

如何将视频添加到网站?

如果您使用<embed>添加autoplay="false"

否则,如果您使用<object>添加<param name="play" value="false" />

否则,如果它<iframe>添加autoplay=0到包含视频的源链接

编辑:我忘记了<video>:D 如果您使用此标签添加视频,请删除autoplay参数。