<!DOCTYPE html>
<html>
<body>

<audio id="myAudio" controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
  Your browser does not support the audio element.
</audio>

<p>Click the button to check if the audio has a media controller.</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

<p><strong>Note:</strong> The controller property is not supported in any major browsers.</p>

<script>
function myFunction() {
    var x = document.getElementById("myAudio").controller;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>