質問

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