Hidden Background Music Using HTML5 Audio


Add this to the footer of your page before the closing </body>

<audio style="display:none;" src="<?php echo CPM_BASE_PATH; ?>assets/audio/bg-music.mp3" loop autoplay></audio>

For more details, refer the HTML5 Audio guide.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *