Embedded YouTube videos without hidden controls until clicking on the video -
i'd display embedded youtube videos controls hidden default, , when user clicks on video, controls appear. videos on this page.
in google documentation pages found how hide controls altogether, not in way. , using firebug while visiting page can't see options used in iframe code relates controls.
so how that?
for reason embed code isn't allowing hide player controls anymore (it working yesterday). way used make work again use old embed code parameters hide controls when click video show if roll out hide again here's code:
<object width="560" height="310"> <param name="movie" value="https://www.youtube.com/v/_-7k-z5zzos?version=3&rel=0&autohide=1&iv_load_policy=3&modestbranding=1&showinfo=0"></param> <param name="allowscriptaccess" value="always"></param> <embed src="https://www.youtube.com/v/_-7k-z5zzos?version=3&rel=0&autohide=1&iv_load_policy=3&modestbranding=1&showinfo=0" type="application/x-shockwave-flash" allowscriptaccess="always" width="560" height="310"></embed> </object>
update working fine here's code:
<iframe width="560" height="240" src="//www.youtube.com/embed/_-7k-z5zzos?autohide=1&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0" frameborder="0"></iframe>
Comments
Post a Comment