Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable full screen on youtube Iframe?

I have a div container and Iframe inside. I assigned width=200 and height=200. when I click on full screen, the video becomes blurry with very bad quality. So, I wanted to see if it is possible to disable full screen on youtube iframe.

like image 318
Morteza Sahebkar Avatar asked Dec 18 '22 11:12

Morteza Sahebkar


1 Answers

"I used ?controls=0 at the end of my url and it resolved the issue."

Your answer doesn't solve the problem, you can toggle full screen also double clicking the video. I tried allowfullscreen="0", doesn't work as well.

The same is for ?showinfo=0; also doesn't work.

?showinfo=0 works only if you change link:

https://www.youtube.com/embed/Di2KMatiGAM?controls=0&showinfo=0

to:

    https://www.youtube-nocookie.com/embed/Di2KMatiGAM?controls=0&showinfo=0
like image 99
Adam Orłowski Avatar answered Dec 22 '22 00:12

Adam Orłowski