Liquid, JavaScript, themes, sales channels
Hi,
Yesterday my video on my shopify store https://www.officialdoorstopalarm.com/ was autoplaying fine on both computer and mobile devices. Today I have to click the Youtube play button to start the video on my iphone. I have tried a few of the solution on Shopify community including adding the autoplay and mute into the video DIV, but it still shows the play button. Could you please take a look. The theme is EXPANSE.
Thanks,
Valera
Hi @valeraanatoli,
You are referring to the hero video section, I tested it and it works fine, have you tried testing on another device?
Hello @valeraanatoli
The HTML5 <video> element, in certain mobile browsers (such as Chrome and Safari), only allows playback to take place if it's initiated by a user interaction (such as tapping on the player).
Document https://developers.google.com/youtube/iframe_api_reference#Mobile_considerations
you can embed .mov video so you can autoplay on mobile
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
User | RANK |
---|---|
22 | |
22 | |
10 | |
9 | |
7 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023