+ 1
hey guys am having a trouble on making an audio to play itself once you open the file
its like when i send you an html file and when you open it the audio starts to play itself.
7 odpowiedzi
+ 1
Try this:
<audio controls autoplay>
<source src="path/to/audio.mp3" type="audio/mpeg">
</audio>
I believe what you're looking for is the autoplay tag. That'll cause it to play automatically.
+ 3
Unfortunatelly it is blocked in browser why it cannot work.
+ 1
jakko jak thanks for that
+ 1
martin how many browsers does it support
0
so how can i get it to work