Youtube iframe API - Android fullscreen

I am using YouTube iframe api to embed a video. When playing video on an iPhone, the video automatically switches to full screen mode. I was wondering if it is possible to force the same behavior on Android? (Currently, the video plays inline, which doesn’t look so good).

+5
source share
1 answer

There is no way to automatically play full screen video. The closest thing you can get is to put the player in a full-screen div and auto-play it using the url options:

<iframe width="100%" height="100%" src="//www.youtube.com/embed/fSy6uh-GjCc?controls=0&amp;autoplay=1&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
+2
source

All Articles