I have welcome.html file in that i have one audio tag inside that source attribute i am adding link from the
jio-saavan but it’s not playing when the webpage is opened but in console i am getting following error..
Error on console
welcome.html:28 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
<audio autoplay id="my_audio"> <source src="https://docs.google.com/uc?export=download&id=11wfYWiukbIZJQnDL385jQs2SGQA5ESbL" type="audio/mpeg"> </audio> <script> document.getElementById('my_audio').play(); </script>
Read more here: Source link