<!DOCTYPE html>
<html>
<body>
<audio id="myAudio" controls oncanplaythrough="myFunction()">
<source src="https://download.samplelib.com/mp3/sample-3s.mp3" type="audio/ogg">
<source src="https://download.samplelib.com/mp3/sample-3s.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<script>
function myFunction() {
alert("Can play the audio without any buffering");
}
</script>
<p>This example demonstrates how to use the "oncanplaythrough" attribute on a AUDIO element.</p>
</body>
</html>