- This topic has 8 replies, 3 voices, and was last updated 2 years, 3 months ago by Justin.
June 4, 2018 at 7:39 am #591490Ivo
I have a problem with our website built on GPPro.
For header I used Page Header and put there all video file types.
There is an image background also and as i have read – GP itself should load that image instead of video on mobile itself.
Well, it is not happening on Android. I have tested Android 4.5 and 7.0 on different phones, everytime the video was used.
On iPhone everything seems okay.
Am I doing something wrong?
Thank you!GeneratePress 2.1.2GP Premium 1.6.2June 4, 2018 at 11:21 am #591718TomLead DeveloperLead Developer
If the mobile browser supports background videos, they will play them instead of showing the placeholder.
In this case, Android supports background videos, which is why you’re seeing them.
We should be able to use some CSS to hide the video on mobile if you’d prefer?June 5, 2018 at 3:12 am #592171Ivo
Thank you for explanation.
I would like to achieve that on mobile the video will be not downloaded (because of a data) and the image will be used instead. Is this somehow possible?June 5, 2018 at 10:06 am #592497TomLead DeveloperLead Developer
Looked into this a bit – it doesn’t look possible to tell certain phones/browsers to not load the video if they want to. We’d have to re-write how the video is loaded in the first place.
I’ve marked this as an issue so we can figure out a way in a future version 🙂January 19, 2019 at 1:58 pm #786572Justin
I have the opposite problem, I want the video to load on mobile and it isn’t – I have added it was a page hero background element. Where am I going wrong?January 19, 2019 at 4:29 pm #786636TomLead DeveloperLead Developer
Are you using these instructions?: https://docs.generatepress.com/article/page-hero-background-video/
Most mobile browsers should play it by default, but I’m pretty sure there’s a couple that won’t. What browsers are you testing on?January 20, 2019 at 6:29 am #786924Justin
Hi, yep – was using that. Im on the latest safari on latest ios.. Ive ended up using this instead, which is very similar https://howtogetonline.com/how-to-embed-a-hero-background-video.php and it works. Continued thanks for your support Tom. Regards.January 20, 2019 at 9:29 am #787164TomLead DeveloperLead DeveloperJanuary 21, 2019 at 8:36 am #788056Justin
- You must be logged in to reply to this topic.