Viewing 8 posts - 31 through 38 (of 38 total)
  • Author
    Posts
  • #1067994

    bitte mal das Merging abstellen bei Enfold Options.
    Da kann ich die Seite besser durchsuchen.

    #1068013

    @ipuls : zunächst mal im Quick Css das hier einstellen – und das andere damit ersetzen.

    .custom-mute {
        display: block;
        background-image: url('/wp-content/uploads/2019/02/icons8-mute-unmute-96.png');
        background-size: cover;
        width: 100px;
        height: 100px;
        position: absolute;
        bottom: 10%;
        right: 5%;
        z-index: 50;
    }
    
    .custom-mute:hover {
        opacity: 0.5;
    }
    
    .icon-sound-on {
     background-image:url('/wp-content/uploads/2019/02/icons8-microphone-96.png')
    }
    #1068023

    Video unbedingt runterrechnen: 45MB ist einfach zu viel für ein Self Hosted Video.
    Zumal das SD Video auf Vimeo zB 19MB hat.

    oder mal Cloudinary anschauen, ist sehr gut und für normalen Traffic kostenlos.
    Das wird in Enfold wie selfhosted gewertet. Also kann auch so gehandhabt werden.

    #1068353

    Also jetzt habt ihr das Merging entfernt!
    Da kann ich jetzt genau sehen, dass dieses Script welches über die child-theme functions.php geladen wird nicht drin ist – not at all.
    Bitte also das in die child-theme functions.php:

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

    Hello guenni007,
    It’s working now!!! I have a small bug with how I inserted the text into functions.php. Thank you for your great effort. Best regards

    #1068438

    but i can not reach your site now!

    aha – now – but the symbol is a little too subtle

    and that was a difficult birth

    • This reply was modified 5 years, 6 months ago by Guenni007.
    #1191161

    Hello!
    I also have this problem that I try to unmute the home video without any success.
    I have changed and put the secion.php in the childtheme folder /shortcodes

    Here is the link to the page:

    If anybody could hellp, I would apprecciate a lot.
    Thank you!

    Kind regards,
    Erna

    #1194289

    Hi,

    @ernaborbas : You have to add the script that @guenni007 provided above in order to create the audio buttons. If you need help with it, please create a new thread and post the details in the private field. We’ll close this one for now. Thank you for understanding.

    Best regards,
    Ismael

Viewing 8 posts - 31 through 38 (of 38 total)
  • The topic ‘Color Section Background Video – Un Mute / Activate Sound’ is closed to new replies.