Viewing 30 posts - 1 through 30 (of 41 total)
  • Author
    Posts
  • #1229474

    Hi, Ive added a video to a full width slider, I want it to auto play, muted, but give the option for the user to unmute the video, however, the video controls don’t show up..I can’t start or stop the video, and I can’t adjust the audio.

    #1229752

    Hi, I was wondering if anyone can help me.

    thanks

    #1230006

    Hello, just following up here.

    #1230269

    Hey!

    Sorry for the delay. Did you set the video slide’s Styling > Video Display settings to the second option (stretch)? The controls are not visible when this option is enabled because as it says the theme has to stretch the video in order to cover the whole slider container and to keep any black bars from displaying. This also moves the controllers outside the slider container. Unfortunately, it’s not possible to adjust the style of the controls..

    If you really need the controls to display, you have to set the Styling > Video Display to the first option.

    Best regards,
    Ismael

    #1230455

    Hi, I made those changes, however, I still don’t see the controls, they seem to be getting cut off.

    #1230458

    The issue now is, I can see the controls, however, I can’t hover over the volume and move the slider up.

    #1230484

    Also, when I click unmute, the volume stays at 0, it does not increase the volume.

    #1230993

    Hello, can i get a response? Why is this taking so long to even get a response?

    #1231119

    Hi,

    Sorry for the delay. We tried to resize the video manually by editing the css directly in the browser inspector and we were able to control the audio.

    Can we access the dashboard? We would like to be able to toggle the slider settings so that so we can check the video controls properly.

    Best regards,
    Ismael

    #1231121
    This reply has been marked as private.
    #1231122

    I can access the controls, however, the volume will not increase when I click the unmute icon.

    #1231499

    Hi, its now been 8 days since I asked the question, Can I please get some help fixing this?

    #1231628

    Hi,

    Sorry for the delay. Do you increase the volume of the video after unmuting it? Please note that the volume is set to 0 by default, so you have to increase it manually after toggling the mute or audio control.

    We tried to enable the sound and increase the volume of the first video in the slide and managed to do so.

    Best regards,
    Ismael

    #1231632

    but your video is not a self hosted one?

    #1231802

    Hi, my video is self hosted, However, when I click the unmute button, it does not increase. I have to manually increase it with the keyboard up arrow. This is extremely bad UI design, and it doesnt work like that on other sites, when you click the unmute button it usually goes to like 50 percent

    #1231803

    Hi, my video is self hosted, However, when I click the unmute button, it does not increase. I have to manually increase it with the keyboard up arrow. This is extremely bad UI design, and it doesnt work like that on other sites, when you click the unmute button it usually goes to like 50 percent. I guess my question is, how do I change it from 0 to 50 percent on unmute.

    #1231995

    Well for self-hosted videos this will work:
    https://webers-testseite.de/mute-unmute-video-slide/

    In the code you see that line:
    video[0].setVolume(0.8);

    set for your needs to 0.5

    #1232056

    Hi, I followed that page exactly and nothing has changed.

    #1232060

    an edited section.php in child-themes folder ?
    and

    Give a custom class to the Full Slider: mute-button

    #1232061

    Yes, correct, I did everything including that.

    #1232066

    may i see that page please.

    #1232077

    Can I email you directly?

    #1232093

    under my nick there are my contact infos.

    #1232118

    Even the div.custom-mute isn’t inserted – so please try with document ready function:
    ( i can create the div via developer tools console – so the selectors are correct )

    function unmute_mute_background_video(){
    ?>
    <script type="text/javascript">
    (function($) { 
    $(document).ready(function(){  
        $('.mute-button .avia_video').closest('.avia-slide-wrap').prepend('<div class="custom-mute"></div>');
        $('.mute-button .avia_video').on('av-mediajs-loaded', function() {   
          var video = $(this).mediaelementplayer();
          video[0].setMuted(true);
          $('.avia-slide-wrap').on('click', '.custom-mute', function() {
            if(video[0].muted === true) {
              video[0].setMuted(false);
              video[0].setVolume(0.5);
            } else {
              video[0].setMuted(true);
            }   
          });
        });
        
        $('.avia-slide-wrap').on('click', '.custom-mute', function() {
          $(this).toggleClass("icon-sound-on");
        });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'unmute_mute_background_video');
    #1232134

    But even if we can manage that ( you can try window load too ) – i think we had to find a solution with vimeo! (Guess the over 50mb video is to much to handle it as self-hosted video.

    there is a possibility to do it with advanced layerslider – and that reacts much better in responsive case. Tomorrow i send you a link and instructions.

    #1232154

    Hi,

    Thanks for the very extensive and good help @guenni007 :-)

    Best regards,
    Rikard

    #1232185

    I added that to my functions and nothing happen still. Am I doing something wrong?

    #1232194

    i answered you per mail – i do not know why.
    it seems that everything is done on your site. But the div.custom-mute isn’t inserted.
    You can see on the test-page link i send you via e-mail that even with your video ( but downsized to 26MB) it works.
    ( it works on my side here even without document ready or window load function. )
    And even if i got two videos on the slider – i do not need to have the custom-mute div generated on an each function. – it works the way above – all video slides will have that buttons.

    #1232197

    next question – did you set to load jQuery in the footer ?
    Please goto Enfold-Child – Performance Settings and uncheck that to verify that. After that you can try to place the function later on setting parameters to it.
    i have on your page the following error : because the script ( it is a jQuery script) does not find the reference.

    #1232199

    on that add_action line can you please do this :

    add_action('wp_footer', 'unmute_mute_background_video', 999);

    so that there is:

    function unmute_mute_background_video_in_slider(){  
    ?>
    <script type="text/javascript">
    (function($) { 
        $('.mute-button .avia_video').closest('.avia-slide-wrap').prepend('<div class="custom-mute"></div>');
        $('.mute-button .avia_video').on('av-mediajs-loaded', function() {   
          var video = $(this).mediaelementplayer();
          video[0].setMuted(true);
          $('.avia-slide-wrap').on('click', '.custom-mute', function() {
            if(video[0].muted === true) {
              video[0].setMuted(false);
              video[0].setVolume(0.5);
            } else {
              video[0].setMuted(true);
            }   
          });
        });
        
        $('.avia-slide-wrap').on('click', '.custom-mute', function() {
          $(this).toggleClass("icon-sound-on");
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'unmute_mute_background_video_in_slider', 999);

    now without function ready

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