Streaming live at 10am (PST)

How to Add Background Sound

#1

Hello, hope you all having a good time.

I’d love to add an atmospheric sound in the background of my website,
This is an example: http://sterling.it/en/
Is it possible?

Thank you.

#2

Most browsers have blocked that functionality since the majority of users hated it according to browser providers. Users need to toggle a switch (interact with a control) to activate the playback of sound.

It would require custom code, or you could offer a video (sound track) with a video embed, the user would have to click to play.

1 Like
#3

Try this code with Autoplay YouTube / Wistia / Vimeo player in background layer

<script>

	$("#sound").on('click', function (){
		if( $("video").prop('muted') ) {
		      $("video").prop('muted', false);
		} else {
		  $("video").prop('muted', true);
		}
	});

</script>
 <style>
 html { background-color: black; }
 </style>
2 Likes