Вопрос

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