[SalesForce] Disable autoplay on a video played in an iFrame from a static resource

I have an mp4 training video that I am trying to add to my Account page layout via an inline Visualforce page. The video is stored as a static resource (Create_New_Contact). I have successfully added it to the page layout, but I can't seem to figure out how to disable autoplay. As soon as the page loads, the video starts playing, and nothing I do will stop it. Here is my code, thanks in advance.

<apex:page standardController="Account" showHeader="false" showChat="false" sidebar="false">
<iframe width="336" height="189"
    src="{!$Resource.Create_New_Contact}"
    frameborder="0" allowfullscreen="true">
</iframe>

Best Answer

Try this instead of iframe:

<video controls="true">
<source src="{!$Resource.Create_New_Contact}" type="video/mp4" />
</video>
Related Topic