-
AuthorPosts
-
June 12, 2018 at 9:39 am #971594
Hi, on my webstie http://www.aprenet.es the YouTube video in the background of the color section in home page is not always starting. When I open the page on a new device I see the play button but I cannot click on it, and the video is not running.
Beside that, if log in on that device then the video starts normally.
Can you help me?
Thanks!June 13, 2018 at 7:19 am #972070Hey Netech,
It’s playing fine on my end using Chrome, how can we reproduce the problem?
Best regards,
RikardJune 13, 2018 at 10:23 am #972183Hi Rikard,
yes, you are right: it’s hard to reproduce the problem on the pc. I’ve tested on five pc and only one was not starting the video.
But then we tried on mobile and results are terrible: only on one mobile on five the video was startig. The opposite then pc!
So you can see the problem just using your mobile (ios or androind)
thanks!Netech
June 14, 2018 at 7:15 am #972638Hi,
Thanks for the feedback. Auto play videos are disabled on mobile devices due to manufacturer restrictions, so I’d be curious on which device/browser it actually did auto play on?
Best regards,
RikardJune 14, 2018 at 10:20 am #972747Hi Rikard,
you were right: in none mobile the autoplay it’s workign, I was remembering wrong.
But now we have the problem that the video is not playing on mobiles. Is there any way to solve it?
Maybe I can put an alternative image taht works only on mobile?June 14, 2018 at 11:47 am #972783look on google search for the playsinline and webkit-playsinline – it seems to be correlating if a background video starts on autostart or not.
but i think that the input field of enfold video does not accept those parameters. So we had to add this on source code.
i will have a look if that will helpSee here how it works on advanced layerslider : https://webers-testseite.de/weber/
playsinline and muted parameters set – but this was a selfhosted videoand this f.e. will start on modern mobile browsers
<video playsinline autoplay loop muted preload="metadata" style="min-width:100vw; min-height:56vw;" > <source src="/wp-content/uploads/background.mp4" type="video/mp4"> <img src="/wp-content/uploads/film-fallback.jpg" title="Your browser does not support the video tag"> </video>
- This reply was modified 6 years, 5 months ago by Guenni007.
June 15, 2018 at 7:23 am #973118Hi Netech,
Thanks for the feedback. You can set fallback images in the Color Section element in order to show an image instead of a video on mobile devices. You could also try adding a regular video element and select to show it only for mobile devices in the Screen Options tab of the element.
Best regards,
RikardJuly 16, 2018 at 5:42 pm #986009Hello
I’ve got a similar problem. Note that I understood I can’t have auto-play video on mobile.
I just would like to launch it manually.
But when the youtube video loads, I see the video thumbnail, with the play button. But I cannot click on it !
Very very frustrating… I don’t want a static image instead, just let the user click on Play to play the video.
Do you see a solution ?Thanks
July 17, 2018 at 5:14 am #986246Hi romano2,
Could you try to add a regular Video element instead, and select to only show it for mobile in the Screen Options tab please?
Best regards,
RikardJuly 17, 2018 at 10:21 am #986334Hello,
Thank you for the answer.
I tried with the regular video element, but it does not look good. Everything shifts in my custom layout, and it is the war with the CSS to display it correctly without margin.
If you haven’t got other solutions, I’m going to stay on a still image, it’s really frustrating…
But rest assured, enfold is still my favorite theme.July 18, 2018 at 11:16 am #986887Hi romano2,
Let’s see if we can adjust the layout with the video element first. Do you still have the video? Can you make a test page?
Best regards,
VictoriaJuly 18, 2018 at 1:24 pm #986963Yes, thanks.
Ok I created a video element in in new section #videomobile
First on media-query desktop view, I need to do :
#videomobile {display:none}
Otherwise the Opening time block no longer sticks to the top block (unwanted white margin).
And desktop view is like before.
But on mobile view (media-query <768px), It’s not what I imagined. I use :@media screen and (max-width:767px){ #videomobile .container{ margin:0!important; width: 100%!important; max-width: 100%!important; } #videomobile .container .av-content-full { padding-top: 0; padding-bottom: 0; } #videomobile .avia-video { margin-bottom: 0px; } }
Result is acceptable. But video is not under the logo, all the youtubes icons and controls are here, while I wish only the play button. Do you have any idea ?
Thanks.July 20, 2018 at 12:46 pm #987785Hi romano2,
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.