- This topic has 6 replies, 3 voices, and was last updated 5 years, 5 months ago by
David.
-
AuthorPosts
-
November 21, 2020 at 1:19 pm #1540452
Greg
Hi guys
I had a background video working on a header element across devices (desktop, mobile) but all of a sudden it seems to have stopped working on mobile – no changes to plugins, just minor CSS edits to other bits on the page. It now displays the play icon in Safari on my iPhone.
Any idea what may have caused this or what to look for?
<video loop muted autoplay playsinline poster="/wp-content/uploads/Video-BG.jpg" class="background-video"> <source src="/wp-content/uploads/Video-Filename.mp4" type="video/mp4"> <source src="/wp-content/uploads/Video-Filename.webm" type="video/webm"/> <source src="/wp-content/uploads/Video-Filename.ogv" type="video/ogg"/> </video> <div class="background-video-content"> <h1 class="header">Headline goes here.</h1> </div>Thanks
GregNovember 21, 2020 at 2:17 pm #1540471Greg
Ahh ha…

I don’t suppose anyone knows a way to force low power mode iOS devices to use the fallback image rather than loading the video with a play button?
Thanks
GregNovember 21, 2020 at 7:16 pm #1540568Leo
StaffCustomer SupportHi Greg,
That is some excellent research! Thanks for letting us know 🙂
I don’t suppose anyone knows a way to force low power mode iOS devices to use the fallback image rather than loading the video with a play button?
Unfortunately that sounds like something that would need to be modified with iOs itself.
November 23, 2020 at 4:00 am #1542086Greg
No problems, and I thought might be the case, I’ll keep searching and let you know if I find any workaround.
November 23, 2020 at 5:05 am #1542146David
StaffCustomer SupportHi there,
Similar topic here with a solution that i assume worked:
https://generatepress.com/forums/topic/background-video-script-for-low-power-mode-in-apple-safari/
November 23, 2020 at 1:56 pm #1543094Greg
Thanks David, adding that script has worked in one sense – it sets the video to play as soon as you interact with the page. It would have been ideal if it could force the autoplay or hide the play button altogether but the is far better than not being able to play the background video at all – and I understand it’s down to the OS and not the code.
Thanks for the help/link to the other thread, appreciated!
GregNovember 24, 2020 at 12:57 am #1543677David
StaffCustomer SupportYep, we are at the mercy of Apple 🙂 You’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.