Youtube iframe without fullscreen

Maybe on a Friday afternoon, but for some reason, I can't seem to get the fullscreen button to appear on my embedded Youtube videos. All I do is copy the sharing code that is generated from the Youtube video:

<iframe width="560" height="315" src="http://www.youtube.com/embed/hFoQVx8ZcHo?rel=0" frameborder="0" allowfullscreen></iframe>

So, for example, using this code http://jsfiddle.net/chricholson/v8sjL/ I see:

enter image description here

I found several articles that talked about the wrong URL /v/[code]instead /embed/[code], but copying directly from Youtube, I thought I would be safe.

+5
source share
3 answers

It seems I needed a number of changes, the final code:

<iframe width="560" height="315" src="http://www.youtube.com/embed/hFoQVx8ZcHo?rel=0&fs=1" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

-, URL- &fs=1, . , webkitallowfullscreen mozallowfullscreen, , .

, , , jsfiddle, , - , iframe. . http://jsfiddle.net/mrchris2013/v8sjL/5/, .

+21

, , &fs=1 .

<iframe width="1280" height="720" src="http://www.youtube.com/embed/doXntJaJ-nQ" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
+3

...! iframe (youtube) iframe (jsfiddle) HTML,

webkitallowfullscreen mozallowfullscreen allowfullscreen

, .....

+3

All Articles