Video (vimeo) autoplay dynamic content

Hi

I have a modal with a video element and dynamic content pulling the video in from an ACF field. As the user has pressed a play button to open the modal I want the video to autoplay.

I’ve seen ‘autoplay-1’ referred to in other threads, can this be applied to the video element?

{{dc:acf:post_field field="video"}}

Hi @henrybag,

Thanks for reaching out.
The Autoplay option is not available in the Embed mode. I would suggest you use the following code store into the ACF and use the Raw Content element to autoplay the Vimeo video.

<iframe id="vimeo_player" src="https://player.vimeo.com/video/257992348?autoplay=1&loop=1&autopause=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

I have used the above video in my local environment and it worked. Please remember the above video is a sample video used for the example purpose, you need to change the Video ID to get your video to play.

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.