Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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 to video_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 779

    Thanks for helping

    • This topic was modified 3 years, 11 months ago by elenapoliti.
    #1268029

    Hey 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,
    Ismael

    #1268061

    Thank you. Find here link and credentials

    #1268425

    Hi,

    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,
    Ismael

    #1268430

    Ok 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

    #1268951

    Hi,

    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,
    Ismael

    #1268995

    Hi 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)

    #1269229

    Hi,

    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,
    Ismael

    #1270134

    Hi 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

    #1270192

    because 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.

    #1270197

    Thanks 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.

    #1270596

    Hi,

    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,
    Yigit

    #1270898

    Thanks Yigit! Your solution did the trick! Topic solved.

    #1270907

    Hi,

    You are welcome! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Background video in color section is mute’ is closed to new replies.