Per usual, I’m sure I’m doing something wrong…
- Using the V2 video element.
- Self-hosted video
- Set to autoplay + loop
- Does not autoplay. Requires click.
- Once clicked, it does loop.
What am I missing?
Per usual, I’m sure I’m doing something wrong…
What am I missing?
Hi @DoncoMarketing,
I’ve taken a look here and it’s working ok for me with various combinations of autoplay + looping. Let me know if there’s a URL I can check for you. One thought is that it could be the browser blocking autoplay.
Please see secure note.
Thanks! I see what you mean. I think this is related to having multiple videos active. Autoplay is triggered when enough of the video is loaded to play it. Because you have multiple videos, they’re all trying to play and when one starts, it stops all the other videos. I’m not sure how we’d solve this officially at the moment, but I can offer two near term solutions
<div class="x-frame">
<div class="x-frame-inner" style="padding-bottom: calc((9 / 16) * 100%);">
<video muted preload="auto" autoplay>
<source src="https://sandbox2.doncomarketing.com/wp-content/uploads/2019/10/Pipeline.mp4" type="video/mp4">
</video>
</div>
</div>
The inline style lets you configure the frame’s aspect ratio. If you are using 16:9 you can just remove the inline style since that’s the default.