How can i change the way the background video is not showing up on mobile? I noticed that the video shows in my crappy tablet, that is way way older than my phone and the video hardly rolls on that, but it still rolls. The phone always shows the “fallback poster” and i was just thinking that it seems like it’s only the size of the screen @media (max-width: 767px)
Is there a way the disable that? Where is the code for it or something?
And yes i know about the new Hero widget but i will get back on that and why i cant use it.
Hi LiSkynd
Thanks for reaching out.
Do you have a public URL where we can take a look at what’s going on?
Thanks for the reply Andrew :)
Here
http://www.burbur.jirina.fi/
Thanks, please, can you let us know which phone and browser you’re testing with. At the moment, I’m unable to recreate the issue on an iPhone 10 in Chrome or Safari.
I have iPhone SE and tested with Safari, Chrome and Firefox and none of them rolls the video. Only the GIF animation. Are you sure it wasnt the GIF animation that plays? The gif is a short 3 second loop, but the video should be about 29 seconds long.
If the video works on newer phones, im happy with that but please confirm that its not the gif anim.
Thanks for the feedback, yes, it looks like the GIF, not the video.
Here is a similar question and feedback from the plugin author https://wordpress.org/support/topic/video-not-working-safari-ios/. As is, the plugin won’t play videos on mobile. The author is suggesting manually changing a library in the plugin to make the change.
This sounds interesting but now when i took a look at it, i’m not sure how to replace that jquery.background-video.js :/ … or should i just go to FTP and wp-content > plugins> … etc. and replace that .js file there?
I did that but it still doesnt work. :/
Maybe i ask the guy there …!
Did you replace jquery.background-video.js in the plugin’s /assets/ folder? Did your FTP plugin alert you to overwriting the file?
Yes thats exactly what i did. I renamed the old file (learned that the hard way some time ago :D ) to jquery.background-videoX.js and then uploaded the new file. Can you take a look?
http://www.burbur.jirina.fi/
It doesnt work on my iPhone SE anyway. I wonder what am i doing wrong :/
I can’t see a change on my phone.
I recommend adding a unique note to the comments header of the file you’re uploading so you can use your browser’s developer tool to check that the updated file is the one being used. If you’re using a caching plugin you might need to clear it.
Thanks, i did that. Just checked and yes the file is there. If you check, you should see this on top of the comments:
// NOTE THIS WAS UPLOADED 2020-3-2
I can see the note. I’m, unfortunately, not sure. Perhaps check if there is a change if you remove the fallback poster?
No change … well, yes, the fallback poster is not there anymore but it didnt make the video show. At least not on my end.
I will try to ask the other guy.
Thanks for your time Andrew :)
Thanks for the update.
Sounds good. Hopefully, the plugin author replies.
Hey, the guy who made it work said:
“”Have you added the
attributes to your video tag?””
I tried to ask where to add that but he didnt reply.
I then found that maybe this is what i should add
But where do i add that? I am using the BG video in the EDIT ROW and then ROW STYLES > Background Video but i can’t add HTML there … can i?
I’ve taken a look. Unfortunately, at the moment, I’m not sure where
playsinline muted
would be inserted in the plugin settings as they’re added to Page Builder.Hmmm…. i tried to look the link he posted when he had the problem but i couldnt figure it out.
https://nonnas2.effectiveonline.marketing/
When i looked at the source code of that page, i can easily find the playsinline in the line 984, but i can’t figure it out from that. Can you?
I even made it work in W3Schools :D
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_fullscreen_video
Even that didnt work on iPhone until taht one word “playsinline”
Their original code was
I had to edit it directly on phone but this started the video roll:
Now i just have to figure out how to add it to the SO BG video :/
Thanks for the updates. I’m, unfortunately, not sure where that parameter would be added within the plugin’s settings.
YAY! I finally found out the file where to add the “playsinline” :D
Here’s how:
Go to file manager on your website (FTP or cPanel…) and find this:
wp-content > plugins > video-backgrounds-for-siteorigin-page-builder
and download
background-videos-for-siteorigin.php file.
(and back up the original file in case something goes tits up)
Edit the video tag in it like this
Make sure it says like this:
playsinline
loop
autoplay
muted
and upload it back to your site’s folder. and BAM the video plays on iPhone :D
Can you confirm Andrew?
Super, thanks for the update. Nicely done. All seems to be working normally on my end.