admin管理员组文章数量:1391039
I'm creating my personal website with 90s and early 2000's style. I would like to add an autoplay and looping bgm on it when the website loaded. However, when I do it, the browser blocks the audio and I need to manually allow the permission on the website. How would I do it without the browser audio autoplay blocking?
<audio src="./audios/background/childhood2.mp3" autoplay loop></audio>
本文标签: htmlHow to prevent a browser from blocking an audio autoplay on a websiteStack Overflow
版权声明:本文标题:html - How to prevent a browser from blocking an audio autoplay on a website? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744600848a2615052.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论