Title: Using iFrame without autoplay
Last modified: February 28, 2020

---

# Using iFrame without autoplay

 *  Resolved [Simon Carne](https://wordpress.org/support/users/scarne/)
 * (@scarne)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/)
 * I want to open an mp4 video hosted locally without it auto-playing.
 * I am creating a lightbox using the following code:
 * [YY](https://wordpress.org/support/topic/using-iframe-without-autoplay/XX?iframe=true&width=500&height=300)
 * XX is a link to an mp4 video and YY is the anchor text.
 * Is there any way to stop is auto-playing? Or is there an alternative code which
   will achieve my aim?

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [Simon Carne](https://wordpress.org/support/users/scarne/)
 * (@scarne)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12490066)
 * Sorry, the code didn’t appear. I will try again.
 *  Thread Starter [Simon Carne](https://wordpress.org/support/users/scarne/)
 * (@scarne)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12490082)
 * The code I am using is an a href=”[link to mp4 file]” with the rel attribute “
   wp-video-lightbox” with “?iframe=true” as a parameter in the HREF (ie as instructed
   at the top of page 4 of the “WP Video Lightbox Plugin Usage Guide”). I tried 
   copying the actual code here but it doesn’t show up.
 * Is there any way to stop is auto-playing? Or is there an alternative code which
   will achieve my aim?
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12490349)
 * Hi,
 * In the plugins settings, do you have the autoplay feature enabled or disabled?
 * Thank you
 *  Thread Starter [Simon Carne](https://wordpress.org/support/users/scarne/)
 * (@scarne)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12490603)
 * The autoplay is disabled in plugin settings.
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12495109)
 * Hi,
 * > I want to open an mp4 video hosted locally without it auto-playing.
 * Are you wanting to open the video and then click on the play button. Is this 
   correct?
 * Thank you
 *  Thread Starter [Simon Carne](https://wordpress.org/support/users/scarne/)
 * (@scarne)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12495421)
 * Yes, that is correct.
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12496825)
 * Hi, I have carried out a test in my dev site using the following code. It works
   for me.
 * `<a href="https://www.youtube.com/watch?v=z75aK3JHx4M&feature=emb_title?iframe
   =true&width=500&height=300" rel="wp-video-lightbox[iframes]">SugarMill Gameplay
   </a>`
 * When I click on SugarMill Gameplay link, it opens up a window and allows me to
   click on the play button. This confirms the plugin is working.
 * For testing purposes, you might want to copy and past the above code in a post
   and carry out a test. Let me know if it works in your site or not?
 * Kind regards
    -  This reply was modified 6 years, 3 months ago by [mbrsolution](https://wordpress.org/support/users/mbrsolution/).
 *  Thread Starter [Simon Carne](https://wordpress.org/support/users/scarne/)
 * (@scarne)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12496842)
 * Thank you, but your example uses a youtube video. My question was about a locally
   hosted video. When I try the same thing with a locally hosted video, the lightbox
   opens up and the video plays straightaway.
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12497017)
 * Thank you for providing more information. I have submitted a message to the developers
   to investigate further your issue.
 * Regards
 *  Thread Starter [Simon Carne](https://wordpress.org/support/users/scarne/)
 * (@scarne)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12497908)
 * Many thanks. I look forward to hearing more when the developers have responded.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Using iFrame without autoplay’ is closed to new replies.

 * ![](https://ps.w.org/wp-video-lightbox/assets/icon-128x128.png?rev=981252)
 * [WP Video Lightbox](https://wordpress.org/plugins/wp-video-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-video-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-video-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-video-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-video-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-video-lightbox/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Simon Carne](https://wordpress.org/support/users/scarne/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/using-iframe-without-autoplay/#post-12497908)
 * Status: resolved