0
good afternoon, I’m trying to put a sound that works on autoplay and loop on a page of my website, but I know it’s not possible if that’s the main page, and it’s not, I want it to be on another one of the website... I have this code and I can’t.. can help me sff??
thank you
HTML
<iframe src="https://files.cargocollective.com/c995491/GAME.mp3" allow="autoplay" style="display:none" id="iframeAudio">
</iframe>
JS
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
if (!isChrome){
$('#iframeAudio').remove()
}
else {
$('#playAudio').remove() // just to make sure that it will not have 2x audio in the background
}