Forum Replies Created
-
AuthorPosts
-
February 10, 2021 at 3:00 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1279488
Hey,
Thanks for your answer, but still the same withnthe old version of jquery
Best regards,
Aryan
February 4, 2021 at 3:24 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1277733It’s paranormal, after the last update of wordpress, the sound is now working, no more error, but it’s like if it was two différents soundtracks at the same time with 1 sec of difference.
Thanks ,
Aryan
January 30, 2021 at 6:26 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1276527I disabled it but I have exactly the same issue…
January 29, 2021 at 11:26 am in reply to: Adding button to mute/unmute audio on fullscreen background video #1276275Now I have this message in the console:
https://handiamo.com/wp-content/uploads/2021/01/Capture-decran-2021-01-29-a-10.23.25.png
Thanks again for your help!
Best regards
January 24, 2021 at 5:52 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1275111Hello guy’s,
I moved the website to the final destination, I did the last update of wordpress and something seems to be différent on safari: at the load of the page, the autoplay doesn’t work and the video don’t start, keeping a black screen. Il I click on the red volum button, the video starts and the sound is there!!!
Now, I just have to found out how to autostart the video on safari (autoplay works on chrome and firefox).
Thanks a lot!
January 10, 2021 at 6:10 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1271384Hello and happy new year everybody.
Any leads on this problem on safari?
Thanks again!
January 10, 2021 at 6:09 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1271383Hello and happy new year everybody.
Any leads on this problem on safari?
Thanks again!
December 21, 2020 at 11:05 am in reply to: Adding button to mute/unmute audio on fullscreen background video #1268978Any leads about this problem in safari? I’m still stuck on this problem…
Thanks a lot!
AryanDecember 18, 2020 at 8:24 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1268484I have a problem with safari,
I have also a problem with the audio of my video: sometime (I don’t know exactly when, often on my iPad, sometime on firefox the sound is like it was 2 différent soundtracks with few milliseconds of difference… I don’t know if I’m clear…I tried to encode the video different ways, but still strange…
Thanks
December 18, 2020 at 7:09 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1268479Very strange!!!
December 18, 2020 at 6:57 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1268474The error doesn’t come up when I remove this part :
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths){ $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; } add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <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 }
December 18, 2020 at 6:39 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1268468December 18, 2020 at 4:46 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1268456Hello,
I don’t know if this is what you. expected:
https://handidev.necessary.fr/wp-content/uploads/2020/12/Capture-decran-2020-12-18-a-15.40.41.png
December 17, 2020 at 1:23 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1268108Hello,
Thanks for this amazing theme!
I have some troubles to make this solution work.
I followed all the beginning of this forum but the sound mute/unmute button is not working under safari on Mac or iPad.Second question, (sorry for my English but I wanted to be sure…
It’s not possible to make a video background autoplay direct with sound (the user can mute with the button.)Here is the code added in function.php:
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths){ $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; } add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <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 }
Here is my CSS:
.custom-mute { display: block; background-image: url('/wp-content/uploads/mute.png'); background-size: 40px; width: 40px; height: 40px; position: absolute; bottom: 20px; right: 20px; z-index: 1000; } .custom-mute:hover { opacity: 0.5; } .icon-sound-on { background-image: url('/wp-content/uploads/unmute.png'); } @media only screen and (max-width: 1290px) { .custom-mute { right: 1%; bottom: 1%; } } @media only screen and (max-width: 767px) { .custom-mute { display: none; } }
Thanks a lot!
Aryan -
AuthorPosts