I'm unsure as to why I'm unable to see the full screen button when viewing an embedded youtube video through an iframe in chrome. This only occurs in chrome (tested with Firefox, IE, Safari, Chrome).

You can see what I mean with the below fiddle as it renders through an iframe. <iframe width="560" height="315" src="//www.youtube.com/embed/BKorP55Aqvg" frameborder="0" allowfullscreen></iframe>

http://jsfiddle.net/9sgng/

Is this a bug/google preference or is there a way around it?

有帮助吗?

解决方案

I worked out that I only had allowfullscreen on the youtube iframe, but you also need it on the iframe that is holding the youtube iframe.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top