Search code examples
vimeoautoplay

Multiple Auto Play Vimeo Videos, but only one auto plays


I've been searching the forums here for an answer to this, but each solution seems a bit off from what I'm actually experiencing.

Is there a way to make all iframe vimeo videos auto play? We’re using vimeo vids (muted) in place of resource glutton GIFs, but it looks like only one video auto plays, while the others do not, even though they’re all set to auto play and loop.

It’s also odd that it chooses randomly which video it’s going to auto play, and which ones it doesn’t.

Thanks for your suggestions!

https://stable.stable-demos.com/what-we-do/


Solution

  • You can achieve this by using the parameter ?background=1. As stated here...

    Adding this parameter will have the following effects:

    1. All player toggles and elements will be turned off (including the play/pause button!)
    2. The video will automatically loop.
    3. The video will be set to autoplay.
    4. The video will be muted.

    All videos marked with this tag will also play concurrently (example).

    Unfortunately, autoplay can be finicky on mobile due to data concerns: autoplay will not work in Safari or Chrome on iOS if low power mode is enabled. There are workarounds to this, but you may want to hide the videos on mobile anyway to improve performance. More information on Autoplay Restrictions and Workarounds can be found here.