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&amp;byline=0&amp;portrait=0&amp;autoplay=1" width="400" height="300" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> 

you see url parameter "autoplay=1", how set autoplay!


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -