Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #976146

    Hi Guys,

    Need some help here i wish to incorporate a full screen background video in my enfold theme i am using the layout of ‘Enfold Photography’, i need sound and the least possible minimal black borders.

    Can anyone give a helping hand?

    Cheers

    #976176

    Hey curmi01,

    Could you please attach a mockup of what you’re trying to achieve?

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Which element are you trying to use?

    Best regards,
    Victoria

    #976211

    Hi Victoria,

    I am using color-section element, however this element doesnt produce sound. Also not sure if it is possible to remove the black bars u see

    I am speaking about my Home page attached find log in details

    #976228

    Hi curmi01,

    Please note that Safari will block all the sounds, unless the user sets it to play sound.

    Here is a thread for you to consider

    Best regards,
    Victoria

    #977235

    Hi victoria,

    Thanks for that. I followed what was needed managed to get the checkbox however video still seems to be muted :(

    #977347

    Also why do none of the elements support autoplay.

    Full Width Slider nor FullScreen Slider are not autoplaying my video when opening the page.

    Thanks

    #977743

    Hi,

    Thanks for the update.

    You can’t unmute a video and have it autoplay at the same time because of the browsers’ autoplay policy. You have to mute the video first in order for them to autoplay or just let the users manually play the videos and enable the audio. Unfortunately, you can’t have both.

    // 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 play video with sound.
    On mobile, the user has added the site to his or her home screen.
    Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.

    Best regards,
    Ismael

    #977843

    Hi Ismael,
    Okay before this i implemented the code to get the Unmute button on the color section however still no sound is coming out…

    why is this?
    Thanks

    #978477

    Hi,

    That modification will only work when a self hosted video is used. It’s not going to work for vimeo videos. Have you tried this one?

    // https://kriesi.at/support/topic/adding-audio-option-on-fullscreen-background-video-2/#post-903302

    You can also add a mute/unmute button..

    // https://webers-testseite.de/mute-unmute/

    Best regards,
    Ismael

    #979023

    Hi Ismael,

    Thanks for that. Im trying to implement to have the mute/unmute button however not managing.

    add_action(‘wp_footer’, ‘mute_unmute_background_video’);
    function mute_unmute_background_video(){
    ?>
    <script type=”text/javascript”>
    (function($) {
    $(‘.avia_video’).on(‘av-mediajs-loaded’, function() {
    $(‘.av-section-color-overlay-wrap’).prepend(‘<div class=”custom-mute”></div>’);
    var video = $(this).mediaelementplayer();
    video[0].setMuted(true);
    $(‘.av-section-color-overlay-wrap’).on(‘click’, ‘.custom-mute’, function() {
    if(video[0].muted === true) {
    video[0].setMuted(false);
    video[0].setVolume(0.8);
    } else {
    video[0].setMuted(true);
    }
    });
    });

    $(‘.av-section-color-overlay-wrap’).on(‘click’, ‘.custom-mute’, function() {
    $(this).toggleClass(“icon-sound-on”);
    });
    })(jQuery);
    </script>
    <?php
    }

    Where does this code exaclty go?

    Thanks

    #979062

    also does this code, effect autoplay feature of the video. as soon as i change it – the video doesnt play automatically

    ‘video_mute’ => true

    #979293

    Hi,

    You have to add that code in the functions.php file. Did you convert the video to MP4? You can’t use vimeo if you want to implement the mute/unmute button.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.