Audio "ON" for Background Video in X-Theme/Child Theme

I found this article https://theme.co/apex/forums/topic/background-video-sound-updates/
but it appears to be out of date. I installed the child them and copied over the files but I don’t see
the code to edit to turn the sound on for my background video.

Hi There,

Yes, there’s an update on the code. It is on this function cs_bg_video() now. Which is part of the required plugin Cornerstone now. See it on this file: wp-content\plugins\cornerstone\includes\utility\helpers.php

// Background Video Output
// =============================================================================

function cs_bg_video( $video, $poster ) {

	$output = do_shortcode( '[x_video_player class="bg transparent" src="' . $video . '" poster="' . $poster . '" hide_controls="true" autoplay="true" loop="true" muted="true" no_container="true"]' );

	return $output;

}

Try copying that function on your child theme. See the muted="true". Try to update that.

Hope this helps.

has anyone been able to enable audio for background videos in Pro? I found cornerstone\includes\utility\helpers.php in Pro and changed ‘muted’ to ‘false’ but it made no change.

Hello There,

Thanks for updating this thread. Regretfully you cannot enable audio for background videos. This is not possible. The intention of the background feature that we have implemented is aesthetic in nature and is not intended to function like video content. If you want to do what you’re mentioning, you’ll need to look into adding a video layer into your slider, which is a Slider Revolution feature (you can read more about this in their online documentation (http://themepunch.com/codecanyon/revolution_wp/documentation/) if you’d like).

Thank you for your understanding.