OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to force iframe to fullscreen when loading (vanilla js)

  • Thread starter Thread starter M. Lemche
  • Start date Start date
M

M. Lemche

Guest
I am working on a Wordpress site using vanilla JS for a video pop up that generates an iframe to play a Vimeo video. I want the iframe to load in fullscreen on mobile devices. I can't seem to finD a solution to this problem.

I've tried the "playsinline=0" parameter for embedded iframes, but it only works when the "play" button is clicked, but I would like the iframe to load in fullscreen when viewed on mobile. I don't have a Vimeo pro account, so I can't use the video file links option with an HTML5 Video element.

Is there any way to do this?

<p>I am working on a Wordpress site using vanilla JS for a video pop up that generates an iframe to play a Vimeo video. I want the iframe to load in fullscreen on mobile devices. I can't seem to finD a solution to this problem.</p>
<p>I've tried the "playsinline=0" parameter for embedded iframes, but it only works when the "play" button is clicked, but I would like the iframe to load in fullscreen when viewed on mobile. I don't have a Vimeo pro account, so I can't use the video file links option with an HTML5 Video element.</p>
<p>Is there any way to do this?</p>
 
Top