Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

JS to force auto-playing in modern browsers

Hello!
Is there a way to use JS to bypass a recent limitation in modern browsers to autoplay music?
I activated an autoplay in a Joomla music player plugin and I also used JS code via Custom HTML module
<script type="text/javascript">
var source = 'https://apostasia.ru/1.mp3';
var audio = new Audio();
audio.addEventListener('load', function() {
audio.play();
}, true);
audio.src = source;
audio.autoplay = true;
</script>
Code (JavaScript):


from JavaScript https://ift.tt/2M9u8bV
via IFTTT

Post a Comment

0 Comments