-
AuthorPosts
-
June 22, 2018 at 8:53 am #976146
Hi Guys,
Need some help here i wish to incorporate a full screen background video in my enfold theme i am using the layout of ‘Enfold Photography’, i need sound and the least possible minimal black borders.
Can anyone give a helping hand?
Cheers
June 22, 2018 at 9:40 am #976176Hey curmi01,
Could you please attach a mockup of what you’re trying to achieve?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Which element are you trying to use?
Best regards,
VictoriaJune 22, 2018 at 10:38 am #976211Hi Victoria,
I am using color-section element, however this element doesnt produce sound. Also not sure if it is possible to remove the black bars u see
I am speaking about my Home page attached find log in details
June 22, 2018 at 10:52 am #976228Hi curmi01,
Please note that Safari will block all the sounds, unless the user sets it to play sound.
Here is a thread for you to consider
Best regards,
VictoriaJune 24, 2018 at 11:04 pm #977235Hi victoria,
Thanks for that. I followed what was needed managed to get the checkbox however video still seems to be muted :(
June 25, 2018 at 9:42 am #977347Also why do none of the elements support autoplay.
Full Width Slider nor FullScreen Slider are not autoplaying my video when opening the page.
Thanks
June 26, 2018 at 2:38 am #977743Hi,
Thanks for the update.
You can’t unmute a video and have it autoplay at the same time because of the browsers’ autoplay policy. You have to mute the video first in order for them to autoplay or just let the users manually play the videos and enable the audio. Unfortunately, you can’t have both.
// https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
Chrome’s autoplay policies are simple:
Muted autoplay is always allowed.
Autoplay with sound is allowed if:
User has interacted with the domain (click, tap, etc.).
On desktop, the user’s Media Engagement Index threshold has been crossed, meaning the user has previously play video with sound.
On mobile, the user has added the site to his or her home screen.
Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.Best regards,
IsmaelJune 26, 2018 at 10:22 am #977843Hi Ismael,
Okay before this i implemented the code to get the Unmute button on the color section however still no sound is coming out…why is this?
ThanksJune 27, 2018 at 4:33 pm #978477Hi,
That modification will only work when a self hosted video is used. It’s not going to work for vimeo videos. Have you tried this one?
// https://kriesi.at/support/topic/adding-audio-option-on-fullscreen-background-video-2/#post-903302
You can also add a mute/unmute button..
// https://webers-testseite.de/mute-unmute/
Best regards,
IsmaelJune 28, 2018 at 7:30 pm #979023Hi Ismael,
Thanks for that. Im trying to implement to have the mute/unmute button however not managing.
add_action(‘wp_footer’, ‘mute_unmute_background_video’);
function mute_unmute_background_video(){
?>
<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
}Where does this code exaclty go?
Thanks
June 28, 2018 at 9:10 pm #979062also does this code, effect autoplay feature of the video. as soon as i change it – the video doesnt play automatically
‘video_mute’ => true
June 29, 2018 at 11:52 am #979293 -
AuthorPosts
- You must be logged in to reply to this topic.