javascript - Video Autoplays after the Display CSS attribute is set to none -
i have iframe src being website has video on autoplay. iframe has display:none;
css attribute. have tried setting autoplay="false"
on iframe video still autoplay. here code
<iframe id="content_cb2" autoplay="false" src="http://www.tablettraining.net/"></iframe></a>
css
#content_cb2{ width: 100%; height: 500px; display: none; }
and here fiddle. you'll notice video autoplay http://jsfiddle.net/uprosoft/csrwe/
any stop video auto-playing highly appreciated.
actually video in page loaded vimeo..
you can embed directly in page without need of tablettraining.net
<iframe src="http://player.vimeo.com/video/59917891?title=0&byline=0&portrait=0&autoplay=1" width="400" height="300" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
you see url parameter "autoplay=1", how set autoplay!
Comments
Post a Comment