-
AuthorPosts
-
February 8, 2021 at 8:52 am #1278569
Hey, just a few months ago I had background video working in the color sections, on mobile — for example on https://justiceforsaweto.org/ — do you know, did Safari/iOS just disable that recently, like within the last few months? Thanks!
February 9, 2021 at 1:17 pm #1279038Hey sky19er,
Thank you for the inquiry,
Video backgrounds are disabled on mobile view by default, which is why a fallback image option is available. So it is impossible that it was working a few months back because it has been the the default behavior ever since. You may need to look for a different solution if you want the video to play on mobile view, such as using the Layer Slider.
Best regards,
IsmaelFebruary 10, 2021 at 12:19 am #1279273Thanks, Ismael, but I just reloaded https://justiceforsaweto.org/ on my phone and it’s working again — the background video’s playing! I just updated my iOS last night — I wonder if that’s what fixed it. Hmm…. yeah, so, I don’t know if this helps anyone, but, as of now, adding ?background=1 to the end of a vimeo url in the Background Video options of a Color Section (https://www.screencast.com/t/nqfry1qy) seems to work in iOS 14.4. I welcome any other comments/info on this, though. Thanks again!
February 10, 2021 at 1:38 pm #1279428Hi,
Thank you for the update.
That is quite odd. It is not possible unless the enfold\config-templatebuilder\avia-shortcodes\slideshow\slideshow.js file has been modified. This code in the _prepareSlides function around line 171 renders the fallback image on mobile view and replaces the video.
var alter = this.$slider.find('.av-mobile-fallback-image'); alter.each(function() { var current = $(this).removeClass('av-video-slide').data({'avia_video_events': true, 'video-ratio':0}), fallback = current.data('mobile-img'), fallback_link = current.data('fallback-link'), appendTo = current.find('.avia-slide-wrap');
Best regards,
IsmaelFebruary 10, 2021 at 6:10 pm #1279569But this is a Color Section, not a Slider — maybe that’s where the confusion/distinction lies? Also there’s no fallback image option in the Background Video options for the Color Section. Did you check my screencast? https://www.screencast.com/t/nqfry1qy. Thanks and let me know if you haven any other questions.
February 12, 2021 at 1:06 pm #1279995Hi,
The fallback image is also the Background Image, and you have to enable the Hide video on Mobile Devices? option.
Hide video on Mobile Devices?
You can choose to hide the video entirely on Mobile devices and instead display the Section Background image
Most mobile devices can’t autoplay videos to prevent bandwidth problems for the userAlternative solution is to use the layer slider instead of the color section.
Best regards,
IsmaelFebruary 16, 2021 at 5:51 am #1280704Ah, I see — thanks. So maybe it’s only working in iOS, eh? Are you able to check if the video on https://justiceforsaweto.org/ is working in Android, by chance? Thanks again, Ismael!
February 18, 2021 at 12:49 pm #1281977Hi,
The video plays automatically on a phone running on MIUI, which is a modified version of Android, so it should run properly on any Android devices.
Thank you for your patience.
Best regards,
IsmaelFebruary 18, 2021 at 6:13 pm #1282032Nice — thanks for checking that! So, I guess this little trick is working for some reason, eh? At least for now — maybe the browsers will clamp down further in the near future ;). Thanks again, Ismael!
February 19, 2021 at 6:54 am #1282140Hi,
Did you need additional help or shall we close?
Best regards,
Jordan ShannonFebruary 19, 2021 at 10:12 pm #1282330No, that’s ok — you can close, thanks.
February 20, 2021 at 1:25 pm #1282451Hi sky19er,
Great :)
We are closing the thread.
If you need further assistance please let us know in a new one.
Best regards,
Victoria -
AuthorPosts
- The topic ‘background video no longer working in mobile’ is closed to new replies.