embed - Turning off autoplay on Vimeo video that is set at a specific time to play -
i try , thorough question possible first go round. question this:
i trying embed vimeo video on blogger plays @ specific timestamp, i.e. 4mins 32secs, instead of beginning of video without autoplaying. video embed fine @ timestamp autoplay , cannot figure out how turn feature off. code video below:
<div style="text-align: center;"> <br /> <iframe allowfullscreen="" frameborder="0" height="375" mozallowfullscreen=""src="https://player.vimeo.com/video/125840111#t=3665s" webkitallowfullscreen=""width="500"></iframe> i have tried various methods "?autoplay=0" etc. guess not getting code right.
any appreciated
have tried ?
<iframe allowfullscreen="" frameborder="0" height="375" mozallowfullscreen=""src="https://player.vimeo.com/video/125840111#t=3665s?autoplay=0" webkitallowfullscreen=""width="500"></iframe> if didn't work try find inspect element, may changed ?autopplay=1 after page load, try method worked me
first html, paste screenshot of vimeo video in image tag , define onclick function , bind iframe on click function,it should work here code
<div id="parent-div" > <img id="vimeo-video" src="images/homevideo.png" onclick="return imgclick();" /> </div> and javascript function
function imgclick() { jquery('#image-for-video').hide(); //hide image display video var ifrm = document.createelement("iframe"); ifrm.setattribute("src", "https://player.vimeo.com/video/1992892829?autoplay=0"); ifrm.style.width = "496px"; ifrm.style.height = "277px"; // add rest of values ifrm.frameborder = 0; document.getelementbyid("parent-div").appendchild(ifrm); return false; }
Comments
Post a Comment