. Advertisement .
..3..
. Advertisement .
..4..
Anyone can help me to solve Uncaught (in promise) DOMException: Failed to load because no supported source was found.?
Here is my code:
<script>
window.onload = function () { document.getElementById("audio").play(); }
window.addEventListener("load", function () { document.getElementById("audio").play(); });
</script>
<body>
<audio id='audio' controls autoplay>
<source src="Sounds/Myaudio.wav" type="audio/wav" />
The browser you are using does not support audio
</audio>
</body>
Take a look at this code, it will help you
To fix error “Uncaught (in promise) DOMException: Failed to load because no supported source was found” try with this catch block