0
I used autoplay attribute but it doesn't seams to play automatically...
<audio src="xyz. mp3" controls autoplay> </audio>
5 Respostas
+ 2
Sololearn CodeEditor prevents autoplay and looping. I send them a bug report but they replyed me that this is a mobile systems limitation (n.b. probably to prevent uncontrolled data traffic) and they can't do anything about it.
try your code on your local server xampp/Lamp to test its functionality.
or try the online editor at
http://www.w3schools.com/html/html5_audio.asp
+ 1
<audio controls autoplay>
<source src="horse.mp3" type="audio/mpeg">
audio element not supported by your browser
</audio>
0
Does it play at all?
0
it doesn't autoplay but still gives the play/pause button
0
you can add more than one type of the same audio i mean mp3,ogg or wav because browsers does not all play the same type of audios