Autoplay Vimeo Video When Popup Pro Opens

I have a Vimeo video embedded in a popup that I created. The popup opens after a person scrolls down 5%. When the popup opens I would like the Vimeo video to autoplay. If I set autoplay=1, the video starts playing when the page loads, which means it plays before the popup opened. Has anyone created a JavaScript to trigger an autoplay when the popup opens?

Thanks!

--Craig

  • Sajid
    • DEV MAN’s Sidekick

    Hi Craig,
    Hope you are doing good today :slight_smile:

    If you have enabled the autoplay then make sure you select WordPress AJAX or Custom AJAX as loading method from PopUp > Settings > PopUp Loading Method > Load PopUp using.

    This will generate the PopUp on show and remove it on close. So this will play on show and stop on close of the popup.

    Hope that helps! Feel free to post a reply if you need further assistance :slight_smile:
    Cheers, Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.