-2

In my html I have this:

 <iframe width="420" height="315"
src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=0&allowfullscreeen=1">
</iframe>

But when I try to make video full screen it says that I can't do this. How do I fix this?

You can check the example here http://www.w3schools.com/html/tryit.asp?filename=tryhtml_youtubeiframe doesn't go fullscreen too

user2950593
  • 9,233
  • 15
  • 67
  • 131

2 Answers2

1

Try this, when you are using firefox.

<iframe src="your_page_url" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen"> </iframe> 
Karthikeyan
  • 381
  • 8
  • 19
0

Try the allowfullscreen like this:

<iframe width="420" height="315"
src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=0" webkitallowfullscreen mozallowfullscreen allowfullscreen>
</iframe>

I found this answer on a previous question which was posted here: YouTube iframe embed - full screen

Community
  • 1
  • 1
CandiUK
  • 1
  • 1