Video autoplay on page load and not with popup

I am using Divi theme. I would like my Vimeo video to play with the popup, but it is auto playing with the page load.

  • Adam Czajczyk

    Hello Daniel,

    I hope you're well today and thank you for your question!

    The issue with autoplay here is that when you add an autoplay parameter to the URL, it will indeed play immediately once the page is loaded. That's because the popup is actually there, but not visible. It's not created when it's triggered, it's only being made visible. That will be the case with most of the plugin of that kind.

    The solution here would be to remove that autoplay parameter first and then go for a custom coded solution. There should be a JS script that starts playback, based on Vimeo's Player API:

    https://github.com/vimeo/player.js

    it should be triggered when the popup is showing. That'd require some custom development though so if you feel like coding it yourself and would have some additional questions - let us know please.

    If you need this to be created for you, you may want to ask on our "Jobs & Pros" job board (please note: no WPMU DEV staff involved!) here:

    https://premium.wpmudev.org/wordpress-development/

    Best regards,
    Adam