Forum Replies Created
-
AuthorPosts
-
September 5, 2018 at 3:59 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1006189
Oh yes, it works… So simple ;)
Thanks a lot !
September 4, 2018 at 12:32 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1005484Hi,
I did change on my section.php file to have : ‘video_mute’ => false.
Then I added that in my functions.php: to be able to change betwwen mute / unmute.
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>I would like the video to be Muted = false at the beginning, but if I change to video[0].setMuted(flase); , I have an error occuring…
September 3, 2018 at 10:33 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1005215Hi,
I test it on a private page. I want the video to be unmute by default, and the button to mute / unmute. The link you gave me, I already saw it but the file to implement is not downoadable anymore … Can you help ?
Thanks ;)
September 1, 2018 at 7:00 pm in reply to: Adding button to mute/unmute audio on fullscreen background video #1004448Hi,
That’s perfect for me, but I want my video to be unmute when loading the page, and the button to mute it if the visitor doesn’t want the sound (it’s a video for a music group, so the sound is important !). I tried to invert with video[0].setMuted(false); video[0].setVolume(0.8); under the var declaration, but it doesn’t work… Can you tell me how I can do that please ?
Thank you !
March 19, 2017 at 12:37 pm in reply to: The Masonry element shows all the blog articles when they link to an empty cat #763179Hi Ismael,
We are on a muti site installation, that can be the problem. But I can’t grant you acess to the files, this is a school website, only the academy has access to it…
We didn’t have this problem last month, so it’s quite a new problem…
Regards
March 15, 2017 at 10:11 am in reply to: The Masonry element shows all the blog articles when they link to an empty cat #761260Here are the informations !
You can deactivate plugins but please you need to put them back online quickly !Regards
March 13, 2017 at 11:40 pm in reply to: 4.0.2 – Masonry no longer display the right category #760330Hi,
I’ve got the same problem on my website: the Masonry shows all articles of the website when the categories are empty… Can you fix it quickly please, it’s a real mess !
-
AuthorPosts