test

<audio id=”background-audio” autoplay muted> <source src=”https://baghbanpakistan.com/wp-content/uploads/2024/09/055.mp3″ type=”audio/mpeg”> Your browser does not support the audio element.</audio><button id=”unmute-btn” style=”display:none;”>Unmute Audio</button><script> document.addEventListener(‘DOMContentLoaded’, function () { var audio = document.getElementById(‘background-audio’); var unmuteBtn = document.getElementById(‘unmute-btn’); // Try autoplaying muted audio.muted = true; audio.play().catch(function(error) { console.log(“Autoplay prevented:”, error); // Show the unmute button if autoplay fails unmuteBtn.style.display = ‘block’; }); // Unmute and play when the button is clicked unmuteBtn.addEventListener(‘click’, function () { audio.muted = false; audio.play(); unmuteBtn.style.display = ‘none’; }); });</script>

× Online