• WillYurman

    (@willyurman)


    Hi, I’m using the plugin Vimeography to display and play a gallery of Vimeo videos on my site.

    When you select a video from the gallery, it autoplays. The plugin developer says it’s not a function of the plugin. And the theme developer says it’s not the theme’s fault.

    Is there any custom CSS or other fix to this? I’d like to avoid auto starting on the videos.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • threadi

    (@threadi)

    I would recommend you contact the support forum of the plugin itself: https://www.ads-software.com/support/plugin/vimeography/

    Thread Starter WillYurman

    (@willyurman)

    Thanks, I did contact the plugin support. They say it’s not a plugin related issue.

    Hey @willyurman ,

    Did you try editing your video embed code to use the autoplay=0 query parameter?

    For example.

    <iframe src="https://player.vimeo.com/video/76979871?autoplay=0" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>

    Reference https://help.vimeo.com/hc/en-us/articles/12426486963857-Autoplay-and-loop-embedded-videos

    Thread Starter WillYurman

    (@willyurman)

    Hi @mlchaves ,

    I do think that’s the solution, but I can’t figure out where to put that code – plugin doesn’t reveal the embed code on the post, I’ve been playing around with some kind of CSS that would be global for the site – but so far it’s beyond my ability.

    I’ll keep playing around with it. Thanks for the suggestion.

    Will

    Hey @willyurman ,

    I looked at this some more. I used Chrome DevTools to change every instance of autoplay=1 to autoplay=0 on your page. That didn’t work.

    I ended up writing a small JS function that forces autoplay=0 in the iframe that Vimeography launches in the popup (light box).

    Yep, it’s the good ole brute force method. It won’t be 100% because you need to guess how long to wait for the iframe to show up. But it should be pretty close.

    I added that JS function to a temporary copy your page via the browser DevTools. You can watch this demo to see what happens when the function runs.

    https://jmp.sh/EgEfT5Aw

    Here’s the code I used in the demo. Feel free to use it as an example.

    https://gist.github.com/marklchaves/bc94b1c499f530d14e3bc8c07f9a8cb1

    If you decide you want to use the code sample and need help doing that properly in WP, holler back.

    Cheers!

    P.S. You can also ask the kind folks at Vimeography to support setting autoplay on and off. Ya, I know they said it wasn’t their problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.