WP Video Lightbox
[resolved] Youtube Autoplay (12 posts)

  1. Abdul Awal Uzzal
    Posted 3 years ago #

    This is really an excellent plugin. I am using this plugin in many projects. However, I am in difficulty with auroplay. I want videos from youtube to start playing automatically (Using Html ).

    So, Can anybody help for this ??



  2. morte
    Posted 3 years ago #

    Go to Settings > Plugins > WP Video Lightbox, and set this to "true"
    $vid_lightbox_autoplay = 'true';

  3. R J
    Posted 3 years ago #

    I personally did not find a setting section for WP Video Lightbox. Also, adding &autoplay=1 to the link doesn't work either. This is what I did instead:

    1. Go to plugins.

    2. Under "WP-Video-Lightbox", click "Edit." This opens the relevant plugin files.

    3. You will automatically open the 1st file (wp-video-lightbox/wp-video-lightbox.php). Scroll to the middle of the file and you should see:

    $vid_lightbox_autoplay = 'false';

    4. Change 'false' to 'true'.

    5. Celebrate.


  4. Jae
    Posted 3 years ago #

    Thanks tzzel, that worked a treat! :)

  5. adk2012
    Posted 3 years ago #

    My code doesn't have that. Where do I insert the "$vid_lightbox_autoplay = 'false';?"

  6. mra13
    Plugin Author

    Posted 3 years ago #

    Open the "wp-video-lightbox/js/video-lightbox.js" file and search the following:

    autoplay: false

    Once you find it, change it to the following:

    autoplay: true
  7. tmcguinness
    Posted 3 years ago #

    Hey there - I found a solution to this for Lightbox Plus Colorbox. Simply add:


    to the end of your Youtube embed link, and the video should play automatically. No change of settings required.

    Hope that helps!

  8. chadw1207
    Posted 2 years ago #

    @tmcguinness I tried your suggestion and that doesn't work for me.

    changing false to true does work, but can this not be accomplished with the shortcode so a plugin update doesn't reset this value?

  9. mikethomastv
    Posted 2 years ago #

    I was able to get a Vimeo video to successfully auto play with shortcode by adding "?autoplay=1" to the end of the video ID.


    [video_lightbox_vimeo5 video_id= 12345678?autoplay=1 width=xx height=xx anchor="xx"]

    Where 12345678 is the Vimeo video ID. Hope this helps.

  10. chadw1207
    Posted 2 years ago #

    Thanks for the suggestion Mike.

    I just tried and it didn't work for YouTube.

    [video_lightbox_youtube video_id=tMfu5aSXU8U?autoplay=1 width=640 height=360 anchor="Watch Our Video"]

    Will you try my code on your site just to see if it works for you?

  11. coffee_king
    Posted 2 years ago #

    Any update on this on a PER LINK basis please?

  12. richvohs
    Posted 2 years ago #

    Working for me:

    VIMEO: add '&autoplay=1' to link

    YOUTUBE: add '?rel=0&autoplay=1' to link

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic