iframe
is lazy-loaded by the Litespeed Cache Plugin, then your .play-button
is still added to the page, but the click doesn’t trigger autoplay
on the iframe
.
By watching the behaviour in the browser inspector, I can see that your script still removes the template
tag when the button is clicked. Your script adds the iframe to the page, which is evident because I’ve modified your script to add the data-wilkinson
attribute. I’ve also added autoplay="autoplay"
, just in case that was the problem: it isn’t. This doesn’t actually start the video playing when the iframe is inserted.
If I disable LCP on this page, the autoplay works as you originally programmed it. Therefore, I’d suggest you check to see whether the iframe is being lazy-loaded. The HTML of the iframe when it’s being lazy-loaded by LCP is:
<iframe data-lazyloaded="1" src="about:blank" title="Haytor 2023" width="1280" height="720" data-src="https://www.youtube.com/embed/mBaxkFq2jxM?feature=oembed&hq=1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen=""></iframe>
(Note: I’ve since deactivated lazy-loading of the iframes in LCP so that the page works as intended.)
]]>I added the loop function, and tried to add the autoplay function this way too, but it isnt working. The autoplay switch in the Master Slider interface is not working either.
]]>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 videos on your own website under the “What You Can Create By Depicter” section do not show either.
Seeing as many iPhone users use Safari, this is a major issue.
]]>Everything works perfect, but the sound of the vimeo video that I inserted in the Metaslider doesn’t play the sound automatically. It is muted by default. How can I change the autoplay music with sound? With CSS or what is possible?
]]>How can I autoplay them?
Thanks.
]]>I set the autoplay until it is visible at 75%.
On the big screen you can see the whole page, but on the smaller one, even if I scroll down, it still plays.
I have no idea where the problem is, but it’s obviously a bug on the plugin side because it doesn’t work on the other site either.
Please help
Thank you
]]>It’s working okay on pages published back in February and March and previous; not working on recently published pages (published within last 5 days)
Link noted above is just one example, several others with same issue. Each page has multiple slideshows embedded.
]]>It’s working okay on sites published back in February and March and previous; not working on recently published sites (published within last 5 days)
Link noted above is just one example, several others with same issue. Each page has multiple slideshows embedded.
]]>