Have you tried like this?
<iframe allowfullscreen="" frameborder="0" height="375" mozallowfullscreen=""src="https://player.vimeo.com/video/125840111#t=3665s?autoplay=0" webkitallowfullscreen=""width="500"></iframe>
if it doesn’t work, try to find it using the check item, it can be changed to ?autopplay=1after the page loads, so try this method, which it worked for me
first your html, insert a screenshot of your vimeo video in the image tag and define the onclick function for this and attach the iframe to the click function, it should work here is the code
<div id="parent-div" >
<img id="vimeo-video" src="images/homeVideo.png" onclick="return imgClick();" />
</div>
and your javascript function
function imgClick() {
jQuery('#image-for-video').hide();
var ifrm = document.createElement("iframe");
ifrm.setAttribute("src", "https://player.vimeo.com/video/1992892829?autoplay=0");
ifrm.style.width = "496px";
ifrm.style.height = "277px";
ifrm.frameborder = 0;
document.getElementById("parent-div").appendChild(ifrm);
return false;
}
source
share