Tagged: enfold, video sound.
-
AuthorPosts
-
December 14, 2020 at 4:24 pm #1267204
Hello I have the same problem other had with the section background video which is mute. I followed what suggested, that is changing in section.php the
video_mute=> false
tovideo_mute=> true
, but still didn’t work.
Any suggestions? I also tried to upload the video in a dedicated folder within wp-content/uploads, but I receive an error in enfold/frameworks/php/function-set-avia-fronted.php on line 779Thanks for helping
- This topic was modified 4 years ago by elenapoliti.
December 17, 2020 at 7:55 am #1268029Hey Elena,
Thank you for the inquiry.
Where can we see the issue or the page with the color section? Please post the site or page URL in the private field so that we could check the issue. If possible, please include an administrator account and make the Appearance > Editor accessible so that we could edit the files when necessary.
Best regards,
IsmaelDecember 17, 2020 at 10:21 am #1268061Thank you. Find here link and credentials
December 18, 2020 at 3:09 pm #1268425Hi,
We forgot to inform you that by enabling the audio, the browser will prevent the video from autoplaying on page load. This is because of the new autoplay policy, which aims to minimize data consumption and network usage.
// https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
Chrome’s autoplay policies are simple:
Muted autoplay is always allowed.
Autoplay with sound is allowed if:
User has interacted with the domain (click, tap, etc.).
On desktop, the user’s Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
The user has added the site to their home screen on mobile or installed the PWA on desktop.
Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.Best regards,
IsmaelDecember 18, 2020 at 3:21 pm #1268430Ok I don’t understand. I use Firefox, but now I tried with Chrome as well. Although audio is enabled via functions.php, AND I have interacted with the domain (click) OR the video with sound has been previously played with sound, I still don’t hear anything.
Also the same thing happens if I add a direct link to the .mp4 uploaded to my server.
Is there any method to bypass the issue? My client wants specifically a video he created (the one that is in the link you received) which has sound.
Thanks for help
December 21, 2020 at 6:06 am #1268951Hi,
Is there any method to bypass the issue? My client wants specifically a video he created (the one that is in the link you received) which has sound.
Please tell the client that by enabling the audio, the video will not autoplay and since there are no video controls in the color section, users will not be able to play the video manually and will probably never see it.
If you really want to enable the audio, please keep the previous modification, then edit the enfold\config-templatebuilder\avia-shortcodes\av-helper-slideshow.php file and remove this code around line 488:
$video_class .= ! empty( $video_mute ) ? ' av-mute-video' : '';
Best regards,
IsmaelDecember 21, 2020 at 12:23 pm #1268995Hi Ismael I tried your solution but it’s still not working. Actually the client doesn’t care if there are no controls available to stop/re-play the video, as the video should be only appear in the home page which works as an intro. So it is juts to have a background video going on, but he really wants to let the audio playing as well.
Another soluton it would be to embed the video in a classical slide, but I don’t know if it is possible to make show it as a full page video with text elements in it as it is now (the reference page is in the private section)
December 22, 2020 at 5:19 am #1269229Hi,
as the video should be only appear in the home page which works as an intro. So it is juts to have a background video going on, but he really wants to let the audio playing as well.
The video will never appear if audio is enabled. It will not play automatically because of the browser policy.
Please post the FTP details in the private field so that we could test the modifications.
Best regards,
IsmaelJanuary 4, 2021 at 1:22 pm #1270134Hi Ismael, have you had the possibility of checking my issue above? I posted in the private session the ftp access as you requested. Thanks a lot
January 4, 2021 at 4:32 pm #1270192because of the browser policy
It’s not because of Enfold or because of WordPress.
The browser specs do not allow autoplay without the user’s consent if the video has sound enabled.These settings can not be influenced by the theme – if you set the policy by yourself in the browser ( that could be done separately for different pages ) to trust that site the themes autoplay could be done.
f.e. firefox:
(click to enlarge) – each bowser got his own way to make these settings.
January 4, 2021 at 4:42 pm #1270197Thanks Guenni007, I actually did change my settings in the browser, allowing video and audio. However still the sound is not played. I tried with Firefox Chrome and Safari, and still the audio is not audible.
January 6, 2021 at 1:11 pm #1270596Hi,
Please refer to this post – https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb and copy /enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php file to you child theme inside /shortcodes/ folder, then edit the file and find following line
$meta['video_mute'] = 'aviaTBaviaTBvideo_mute';
and change it to following
$meta['video_mute'] = '';
Best regards,
YigitJanuary 7, 2021 at 4:28 pm #1270898Thanks Yigit! Your solution did the trick! Topic solved.
January 7, 2021 at 5:17 pm #1270907 -
AuthorPosts
- The topic ‘Background video in color section is mute’ is closed to new replies.