Okay
  Public Ticket #3120547
Audio prevents autoplay of video
Closed

Comments

  • Mike started the conversation

    Hi, 

    When I select for audio of a linked youtube video the autoplay doesnt work.  

  •  41
    John replied

    Hi Mike,

    Thank you for getting in touch with us. My name is John, and I'm happy to assist you today.

    Modern web browsers don't allow autoplay with sound in most cases since it was deemed undesirable. Some exceptions exist, for example, if users frequently visit the website or they interact with it first by clicking on an element before attempting to autoplay video with sound. You can read more about it in this blog post by the Chrome Dev Team.

    Since this is something that web browsers control and we have no way to circumvent it, only two solutions exist: you either prompt visitors to click on a play button before autoplaying the video, or you autoplay the video muted and offer an unmute button. This latter case is the default behavior in LayerSlider.

    Best Regards,
    John | Kreatura Dev Team

  • Mike replied

    Hi John, 

    Thank you for this.  I kinda figured it was out of your hands.  

    I am still having a critical issue that my other ticket was for.  I wonder if you have some diff insight into it. 

    https://kreatura.ticksy.com/ticket/3094291/

    This page, for instance, still has the issue that the video doesnt load first time, but upon refresh it loads everytime.  I have been plagued with this issue for over a year.  https://mikefieldsbronzes.com/ribbon-life-contemporary-dna-sculpture/



  •  41
    John replied

    Hi Mike,

    I'm not sure what's the current state of that issue. It seems my colleague found a solution that worked reliably for us, and you've also confirmed it previously. Have you re-enabled that caching option in the meantime?

    Best Regards,
    John | Kreatura Dev Team

  • Mike replied

    Hi John, I didn't change anything on the host side.  I cant remember on the wordpress side.  But surely I can have caching, and this still work no?  

  •  41
    John replied

    Normally, yes. LayerSlider supports all kinds of caching and CDN solutions, and we're also using these on our website. However, I'm not sure what SiteGround's SuperCacher does in the background, so it's possible that it somehow interferes. 

    We haven't encountered an issue like this in the past from other customers. It's also possible that the combination of other plugins, the theme, and your content causes this issue. YouTube has a terrible API that makes it borderline impossible to use it on CMS systems like WordPress, where everyone wants to access it simultaneously. We did our due diligence to make it as compatible as possible, but it doesn't guarantee anything if others don't do the same. Temporarily disabling other plugins and changing the WP theme might be a good test to see if it helps.

    I don't believe there's an issue in LayerSlider itself since we've made countless tests in countless scenarios, and millions of people are using it without a problem. If there's an issue, it's the ones mentioned above. 

    You can consider dropping YouTube in favor of HTML5 self-hosted videos as a workaround. They look nicer and integrate more seamlessly into your site since they don't have branding with logos, and you can disable controls as well. More importantly, self-hosted videos work as they should, and there's very little to no chance of incompatibility. Combined with a caching plugin like WP Rocket and a CDN solution like Cloudflare, you can have a more speedy website worldwide with less server load and bandwidth usage.

    Best Regards,
    John | Kreatura Dev Team