Tagged: background video
-
AuthorPosts
-
February 17, 2019 at 8:52 pm #1067994
bitte mal das Merging abstellen bei Enfold Options.
Da kann ich die Seite besser durchsuchen.February 17, 2019 at 9:17 pm #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') }
February 17, 2019 at 9:27 pm #1068023Video 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.February 18, 2019 at 1:47 pm #1068353Also 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 }
February 18, 2019 at 3:42 pm #1068409Hello 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 regardsFebruary 18, 2019 at 4:30 pm #1068438but 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, 9 months ago by Guenni007.
March 7, 2020 at 8:56 pm #1191161Hello!
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 /shortcodesHere is the link to the page:
If anybody could hellp, I would apprecciate a lot.
Thank you!Kind regards,
ErnaMarch 19, 2020 at 3:29 am #1194289Hi,
@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 -
AuthorPosts
- The topic ‘Color Section Background Video – Un Mute / Activate Sound’ is closed to new replies.