pavani25
04-15-2020, 03:51 AM
See the following code and give your suggestion
<body>
<audio id="audioFile" width="100%" height="auto" autoplay controls>
<source src="wonderland.mp3" type="audio/mp3">
</audio>
<script>
var audio = document.getElementById('audioFile');
audio.controls = false;
</script>
I don't need any control, it should play automatically.
<audio autoplay>
<source src="wonderland.mp3" type="audio/mpeg"> /
Your browser does not support the audio element.
</audio>
<body>
<audio id="audioFile" width="100%" height="auto" autoplay controls>
<source src="wonderland.mp3" type="audio/mp3">
</audio>
<script>
var audio = document.getElementById('audioFile');
audio.controls = false;
</script>
I don't need any control, it should play automatically.
<audio autoplay>
<source src="wonderland.mp3" type="audio/mpeg"> /
Your browser does not support the audio element.
</audio>